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.

This commit is contained in:
Adam Murdoch
2014-03-15 10:30:04 +11:00
parent 5a08498c3f
commit 3b69872d0c

View File

@@ -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
}