aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-03 15:05:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-03 15:05:33 -0800
commit4cab9f5a5ac72e9eaf904ace0ebe29d5e30ba9b6 (patch)
treeaf68f3054ccbbf19ecf3e6bf3f3c3a5bf54d93e6
parent5967df82e9a2da8e1737b0f46b3db3f7b785af73 (diff)
force a target of i386-pc-linux-gnu
-rw-r--r--tools/shared.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 12490cdf..970edc67 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -140,9 +140,11 @@ try:
COMPILER_OPTS # Can be set in ~/.emscripten, optionally
except:
COMPILER_OPTS = []
+# 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__x86_64__', '-U__i386', '-U__x86_64', '-U__SSE__', '-U__SSE2__', '-U__MMX__',
'-UX87_DOUBLE_ROUNDING', '-UHAVE_GCC_ASM_FOR_X87', '-DEMSCRIPTEN', '-U__STRICT_ANSI__', '-U__CYGWIN__',
- '-D__STDC__']
+ '-D__STDC__', '-Xclang', '-triple=i386-pc-linux-gnu']
+
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')