]> source.dussan.org Git - dcevm.git/commitdiff
Fixing native library compilation on x86 vs x64
authorIvan Dubrov <idubrov@guidewire.com>
Sat, 26 Apr 2014 04:38:05 +0000 (21:38 -0700)
committerIvan Dubrov <idubrov@guidewire.com>
Sat, 26 Apr 2014 04:38:05 +0000 (21:38 -0700)
build.gradle

index 1b7cb0b68202e4d79bf173c944d1dc9721f5722a..85d497dd539008e2f2c54948cb124e21695cc0de 100644 (file)
@@ -143,6 +143,7 @@ project('native') {
                 args "-I${jre}/../include/linux"
                 args '-o'
                 args 'build/libnatives.so'
+                args (arch == Arch.X86 ? '-m32' : '-m64')
             } else if (os == Os.MAC) {
                 args "-I${jre}/../include/darwin"
                 args '-o'