aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-23 14:09:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-23 14:09:08 -0700
commitfb9103426684a1fa70736febe147df49aedc91a5 (patch)
treec99dc8da3651e9c996c5fef6c0284c06435756f2
parent27601a8a9f19446c84f1904e460375a29564b192 (diff)
add a define of __EMSCRIPTEN__
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 748b509c..51447c05 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -401,7 +401,7 @@ except:
# Force a simple, standard target as much as possible: target 32-bit linux, and disable various flags that hint at other platforms
COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-U__i386__', '-U__i386', '-Ui386',
'-U__SSE__', '-U__SSE_MATH__', '-U__SSE2__', '-U__SSE2_MATH__', '-U__MMX__',
- '-DEMSCRIPTEN', '-U__STRICT_ANSI__',
+ '-DEMSCRIPTEN', '-D__EMSCRIPTEN__', '-U__STRICT_ANSI__',
'-target', 'i386-pc-linux-gnu', '-D__IEEE_LITTLE_ENDIAN', '-fno-math-errno']
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')