From 2ff694fa4927faad18b10acc940c7cc25545eac2 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 19 Oct 2019 09:50:49 -0700 Subject: [PATCH] Unbreak gradle build when other compilers installed (#1958) There was dependency breakage in halsim_gui, which is only available on desktop. --- simulation/halsim_gui/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simulation/halsim_gui/build.gradle b/simulation/halsim_gui/build.gradle index 50fb9b69c4..5ac68ea2f5 100644 --- a/simulation/halsim_gui/build.gradle +++ b/simulation/halsim_gui/build.gradle @@ -23,6 +23,10 @@ if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxra binaries { all { nativeUtils.useRequiredLibrary(it, 'imgui_static') + if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio || it.targetPlatform.name == nativeUtils.wpi.platforms.raspbian || it.targetPlatform.name == nativeUtils.wpi.platforms.aarch64bionic) { + it.buildable = false + return + } if (it.targetPlatform.operatingSystem.isWindows()) { it.linker.args << 'Gdi32.lib' << 'Shell32.lib' } else if (it.targetPlatform.operatingSystem.isMacOsX()) {