aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-06-13 16:21:07 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-06-13 16:21:07 +0300
commit59687f98cc7aebd5b6b0e069986b9dba483a605b (patch)
tree436b474fe87e0165fc2c3e822ce7c3ff280fbd58
parent886e3158cf5d95a2c2721e5eb9a1c3ac4461f805 (diff)
Improve emcc input file detection to ignore all arguments that precede a GCC preprocessor command line option from http://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html .
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 2a7e10d0..590f4040 100755
--- a/emcc
+++ b/emcc
@@ -902,7 +902,7 @@ try:
if i > 0:
prev = newargs[i-1]
- if prev in ['-MT', '-install_name', '-I', '-L']: continue # ignore this gcc-style argument
+ if prev in ['-MT', '-MF', '-MQ', '-D', '-U', '-o', '-x', '-Xpreprocessor', '-include', '-imacros', '-idirafter', '-iprefix', '-iwithprefix', '-iwithprefixbefore', '-isysroot', '-imultilib', '-A', '-isystem', '-iquote', '-install_name', '-I', '-L']: continue # ignore this gcc-style argument
if (os.path.islink(arg) and os.path.realpath(arg).endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES)):
arg = os.path.realpath(arg)