Correct platform path for 32-bit Linux (#179)

Gradle needs to produce a platform path of "Linux/i386" when targeting a Linux 32-bit Intel platform. Otherwise, it doesn't match Java's os.name/os.arch when loading the ntcore library in NetworkTablesJNI.java. Windows uses "x86" but Linux uses "i386". (http://lopica.sourceforge.net/os.html)
This commit is contained in:
Joseph Jackson
2017-04-30 10:47:02 -05:00
committed by Peter Johnson
parent e6656326a8
commit 9f97cd61bf

View File

@@ -28,7 +28,7 @@ ext.getPlatformPath = { binary ->
if (binary.targetPlatform.architecture.amd64) {
return 'Linux/amd64'
} else {
return 'Linux/' + binary.targetPlatform.architecture.name
return 'Linux/i386'
}
} else if (binary.targetPlatform.operatingSystem.windows) {
if (binary.targetPlatform.architecture.amd64) {