aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-19 11:10:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-19 11:10:43 -0700
commit6193fdf46332be94e4d390c4f9e34e4980a087bf (patch)
tree15b0c142790f2f0587da0d5e189a0d0d02a07591 /tools
parent07cd461075266e96a2805e372824d5987e482bc8 (diff)
parent0d1d8a114cc4e73438c04bf4070f30852b1a1961 (diff)
Merge pull request #1073 from waywardmonkeys/cleanup-compiler-flags
Cleanup compiler flags
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/shared.py b/tools/shared.py
index d1049842..eedb2e8b 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -399,13 +399,10 @@ try:
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
-# -fno-ms-compatibility is passed, since on Windows, Clang enables a 'MS compatibility mode' by default, that disables char16_t and char32_t
-# to be MSVC header -compatible. This would cause build errors in libcxx file __config.
-# -fno-delayed-template-parsing is needed on Windows due to http://llvm.org/PR15651
-COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-U__i386__', '-U__x86_64__', '-U__i386', '-U__x86_64', '-Ui386', '-Ux86_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', '-fno-math-errno',
- '-fno-ms-compatibility', '-fno-delayed-template-parsing']
+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__',
+ '-target', 'i386-pc-linux-gnu', '-D__IEEE_LITTLE_ENDIAN', '-fno-math-errno']
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')