diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-05-09 18:12:03 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-05-09 18:12:03 +0300 |
commit | 4b11a247652d396909237535bfa44ee2749032af (patch) | |
tree | 3f6b75801cabdabc12d28f223fa07fd3f9b222a4 /tools/shared.py | |
parent | 5e86eb0a834d9da5128e9fe9a6e24f94ec1cf0c1 (diff) |
Remove the __native_client__ system define when using NaCl triple. Emscripten does not implement Google Native Client/Pepper APIs.
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 5a9860db..bc811dae 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -509,6 +509,9 @@ COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-U__i386__', '-U__i386', '-Ui386', '-D__IEEE_LITTLE_ENDIAN', '-fno-math-errno', '-fno-threadsafe-statics', '-target', LLVM_TARGET] +if LLVM_TARGET == 'le32-unknown-nacl': + COMPILER_OPTS += ['-U__native_client__'] # 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') if USE_EMSDK: |