mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
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:
committed by
Peter Johnson
parent
e6656326a8
commit
9f97cd61bf
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user