diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2012-09-22 12:58:32 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2012-11-12 21:14:37 +0200 |
commit | 4f25d496a133c0dd8146b76a7550e0a45d11795b (patch) | |
tree | 85dd1f2e7822c644b365223da716d77cb740bcc4 | |
parent | 2b0340268781442e1d63963ff4861baa4bf27646 (diff) |
Don't pass all emcc command line inputs e.g. those of form '-DsomeDefine=1' etc. to shared.Building.is_ar() for testing whether a file by that name is a LLVM archive file.
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -727,7 +727,7 @@ try: prev = newargs[i-1] if prev in ['-MT', '-install_name']: continue # ignore this gcc-style argument - if arg.endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES) or shared.Building.is_ar(arg): # we already removed -o <target>, so all these should be inputs + if not arg.startswith('-') and (arg.endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES) or shared.Building.is_ar(arg)): # we already removed -o <target>, so all these should be inputs newargs[i] = '' if os.path.exists(arg): if arg.endswith(SOURCE_SUFFIXES): |