aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-17 17:08:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-17 17:08:57 -0700
commite8b1ec27a7bef3ba21be8462629bc08574bbe090 (patch)
treed0c6ba15e10352616fa82352345988841f5291da /emcc
parent02382e49cb9ec756b1b50f350c956d82411a1c67 (diff)
parent59687f98cc7aebd5b6b0e069986b9dba483a605b (diff)
Merge pull request #1281 from juj/noninput_cmdline_opts
Improve emcc input file detection to ignore all arguments that precede a...
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 36ee9ba0..b8230e95 100755
--- a/emcc
+++ b/emcc
@@ -905,7 +905,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)