aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-10 21:05:07 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-21 10:47:40 -0800
commitea72b923bf5419de8e948a44387e55eea657f9f4 (patch)
tree9d64bed0e7bd1802a6136517946804e5d1a3d4e5
parent998e00134b593e4f503d837cddf9fd9f26980a99 (diff)
make -fno-math-errno the default
-rwxr-xr-xtests/runner.py2
-rw-r--r--tools/shared.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 568ea798..b5c819ec 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -279,7 +279,7 @@ process(sys.argv[1])
return ret
def build_native(self, filename):
- process = Popen([CLANG, '-O2', filename, '-o', filename+'.native'], stdout=PIPE);
+ process = Popen([CLANG, '-O2', '-fno-math-errno', filename, '-o', filename+'.native'], stdout=PIPE);
output = process.communicate()
if process.returncode is not 0:
print >> sys.stderr, "Building native executable with command '%s' failed with a return code %d!" % (' '.join([CLANG, '-O2', filename, '-o', filename+'.native']), process.returncode)
diff --git a/tools/shared.py b/tools/shared.py
index 97b4fd05..b9900284 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -346,7 +346,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__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__', '-Xclang', '-triple=i386-pc-linux-gnu', '-D__IEEE_LITTLE_ENDIAN']
+ '-D__STDC__', '-Xclang', '-triple=i386-pc-linux-gnu', '-D__IEEE_LITTLE_ENDIAN', '-fno-math-errno']
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')