diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-01 10:07:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-01 10:07:15 -0700 |
commit | 2c4d6f0150de7a44ec284f0b9138b70cf1095b76 (patch) | |
tree | 735f1c6b381862b49326a278c2ba0a7a2d8b9657 /tools/shared.py | |
parent | e4ec9607364da091419c1b909e585e59da27e9d7 (diff) |
do not emit -m32 when using le32 target
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 007c2ee8..0732842d 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -509,6 +509,7 @@ COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-U__i386__', '-U__i386', '-Ui386', '-target', LLVM_TARGET] if LLVM_TARGET == 'le32-unknown-nacl': + COMPILER_OPTS = filter(lambda opt: opt != '-m32', COMPILER_OPTS) # le32 target is 32-bit anyhow, no need for -m32 COMPILER_OPTS += ['-U__native_client__', '-U__pnacl__', '-U__ELF__'] # The nacl target is originally used for Google Native Client. Emscripten is not NaCl, so remove the platform #define, when using their triple. USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK') |