GT-3304: Do not require Visual Studio do be installed to get past

configuration phase.
This commit is contained in:
Ryan Kurtz
2019-11-13 11:22:38 -05:00
parent 3f91b703ea
commit 0a58b856a2
3 changed files with 21 additions and 11 deletions

View File

@@ -49,11 +49,9 @@ task CheckToolChain {
// Native C/Cpp plugins will trigger failure if no tool chain found
doFirst {
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
// ensure that required MS Visual Studio is installed where expected
String msg = "Microsoft Visual Studio install not found: ${VISUAL_STUDIO_INSTALL_DIR}\n" +
"Adjust path in Ghidra/GPL/vsconfig.gradle if needed."
if (!file(VISUAL_STUDIO_INSTALL_DIR).exists()) {
throw new GradleException(msg);
// ensure that required MS Visual Studio is installed
if (!VISUAL_STUDIO_INSTALL_DIR) {
throw new GradleException("Visual Studio not found!");
}
}
}