From 3b69872d0c16ec811a2e7a62ac97d7bb72edae6f Mon Sep 17 00:00:00 2001 From: Adam Murdoch Date: Sat, 15 Mar 2014 10:30:04 +1100 Subject: [PATCH] Only treat the current architecture, as reported by the jvm, as available on Linux and FreeBSD. Needs a fix for multiarch detection in the native plugins. --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 1dea276..6d9bcf6 100755 --- a/build.gradle +++ b/build.gradle @@ -166,7 +166,11 @@ configurations { def deployer = uploadJni.repositories.mavenDeployer binaries.withType(SharedLibraryBinary) { binary -> - if (!buildable || targetPlatform.operatingSystem.name == 'linux' && targetPlatform.architecture.name != System.properties['os.arch']) { + if (!buildable) { + return + } + if (targetPlatform.operatingSystem.name in ['linux', 'freebsd'] && targetPlatform.architecture.name != System.properties['os.arch']) { + // Native plugins don't detect whether multilib support is available or not. Assume not for now return }