Skip to content

Commit

Permalink
#1 Use 32 bit clibraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntu committed May 31, 2021
1 parent f90ce5d commit e693974
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion substratevm/mx.substratevm/mx_substratevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ def _native_image_launcher_extra_jvm_args():
res = []
jdk = mx.get_jdk(tag='default')
if not mx_sdk_vm.jdk_enables_jvmci_by_default(jdk):
res.extend(['-XX:+UnlockExperimentalVMOptions', '-XX:+EnableJVMCI'])
res.extend(['-XX:+UnlockExperimentalVMOptions', '-XX:+EnableJVMCI', '-XX:-UseJVMCICompiler'])
return res


Expand Down
13 changes: 12 additions & 1 deletion substratevm/mx.substratevm/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,14 @@
"cflags": ["-Zi", "-O2", "-D_LITTLE_ENDIAN", "-DJDK_VER=<jdk_ver>"],
},
},
"linux": {
"i386": {
"cflags": ["-g", "-fPIC", "-O2", "-D_LITTLE_ENDIAN", "-ffunction-sections", "-fdata-sections", "-fvisibility=hidden", "-D_FORTIFY_SOURCE=0", "-m32"],
},
"<others>": {
"cflags": ["-g", "-fPIC", "-O2", "-D_LITTLE_ENDIAN", "-ffunction-sections", "-fdata-sections", "-fvisibility=hidden", "-D_FORTIFY_SOURCE=0", "-m32"],
},
},
"<others>": {
"<others>": {
"cflags": ["-g", "-fPIC", "-O2", "-D_LITTLE_ENDIAN", "-ffunction-sections", "-fdata-sections", "-fvisibility=hidden", "-D_FORTIFY_SOURCE=0"],
Expand Down Expand Up @@ -484,8 +492,11 @@
},
},
"linux": {
"i386" : {
"cflags": ["-g", "-fPIC", "-O2", "-ffunction-sections", "-fdata-sections", "-fvisibility=hidden", "-D_FORTIFY_SOURCE=0", "-m32"],
},
"<others>" : {
"cflags": ["-g", "-fPIC", "-O2", "-ffunction-sections", "-fdata-sections", "-fvisibility=hidden", "-D_FORTIFY_SOURCE=0"],
"cflags": ["-g", "-fPIC", "-O2", "-ffunction-sections", "-fdata-sections", "-fvisibility=hidden", "-D_FORTIFY_SOURCE=0", "-m32"],
},
},
"<others>": {
Expand Down

0 comments on commit e693974

Please sign in to comment.