aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-04-17 17:20:37 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-04-17 17:20:37 +0700
commit7df317fe4bb814f7deffc75c2c9b86663aefb7e7 (patch)
treeee5177a40407484b25775e3b742f123403d693aa /tools
parent985765d9a5b2dcca05bc5f8401e3d2423964d0f2 (diff)
Use -target rather than -triple with clang.
Apparently -target replaced -triple in the past. Using -target also makes the behavior of clang match the target rather than the host platform.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index d5a37c03..2eca5742 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -404,7 +404,7 @@ except:
# -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',
+ '-D__STDC__', '-target', 'i386-pc-linux-gnu', '-D__IEEE_LITTLE_ENDIAN', '-fno-math-errno',
'-fno-ms-compatibility', '-fno-delayed-template-parsing']
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')