aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjuj <jujjyl@gmail.com>2013-04-04 00:07:29 -0700
committerjuj <jujjyl@gmail.com>2013-04-04 00:07:29 -0700
commit1613b96ed8d1f85b8c58fa0da6c0527075d01d82 (patch)
treee0bd4fa12b3815eb04f00447cc4696b791e9319b /tools
parent927355084b711b8aaf54668ab791a4693cf45aaf (diff)
parent83a401ae7b6180320d96e430bed7f0df8e9b03f1 (diff)
Merge pull request #1030 from waywardmonkeys/fix-windows-constexpr-problem
Work around problem with constexpr on Windows.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index c492ba49..5f3968a2 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -374,10 +374,11 @@ except:
# 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-ms-compatibility', '-fno-delayed-template-parsing']
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')