aboutsummaryrefslogtreecommitdiff
path: root/tools/emmaken.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/emmaken.py')
-rwxr-xr-xtools/emmaken.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/emmaken.py b/tools/emmaken.py
index 3590f86b..b860bacb 100755
--- a/tools/emmaken.py
+++ b/tools/emmaken.py
@@ -55,11 +55,14 @@ try:
CC = to_cc(CXX)
CC_ARG_SKIP = ['-O1', '-O2', '-O3']
- CC_ADDITIONAL_ARGS = ['-m32', '-U__i386__', '-U__x86_64__', '-UX87_DOUBLE_ROUNDING', '-UHAVE_GCC_ASM_FOR_X87']
+ CC_ADDITIONAL_ARGS = ['-m32', '-U__i386__', '-U__x86_64__', '-U__SSE__', '-UX87_DOUBLE_ROUNDING', '-UHAVE_GCC_ASM_FOR_X87']
ALLOWED_LINK_ARGS = ['-f', '-help', '-o', '-print-after', '-print-after-all', '-print-before',
'-print-before-all', '-time-passes', '-v', '-verify-dom-info', '-version' ]
DISALLOWED_LINK_ARGS = []#['rc']
+ EMMAKEN_CFLAGS = os.environ.get('EMMAKEN_CFLAGS')
+ if EMMAKEN_CFLAGS: CC_ADDITIONAL_ARGS += EMMAKEN_CFLAGS.split(' ')
+
# ---------------- End configs -------------
if len(sys.argv) == 2 and 'conftest' not in ' '.join(sys.argv): # Avoid messing with configure, see below too