aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-05-09 20:41:51 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-05-09 20:41:51 +0300
commitaf8773cf7c00665cd2b781fbd5a4977d4d830d08 (patch)
treed37c4d7d7ea5d50e643b52af39fb6e36546a2564
parent38a6f056ae208c66e1da2b4e31429d75836b5617 (diff)
Also remove #define __ELF__ when building using NaCl triple.
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index ca1b3507..0818f6b9 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -510,7 +510,7 @@ COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-U__i386__', '-U__i386', '-Ui386',
'-target', LLVM_TARGET]
if LLVM_TARGET == 'le32-unknown-nacl':
- COMPILER_OPTS += ['-U__native_client__', '-U__pnacl__'] # The nacl target is originally used for Google Native Client. Emscripten is not NaCl, so remove the platform #define, when using their triple.
+ 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')