diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-17 17:08:57 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-17 17:08:57 -0700 |
commit | e8b1ec27a7bef3ba21be8462629bc08574bbe090 (patch) | |
tree | d0c6ba15e10352616fa82352345988841f5291da | |
parent | 02382e49cb9ec756b1b50f350c956d82411a1c67 (diff) | |
parent | 59687f98cc7aebd5b6b0e069986b9dba483a605b (diff) |
Merge pull request #1281 from juj/noninput_cmdline_opts
Improve emcc input file detection to ignore all arguments that precede a...
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |