aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2012-09-22 12:58:32 +0300
committerJukka Jylänki <jujjyl@gmail.com>2012-11-12 21:14:37 +0200
commit4f25d496a133c0dd8146b76a7550e0a45d11795b (patch)
tree85dd1f2e7822c644b365223da716d77cb740bcc4
parent2b0340268781442e1d63963ff4861baa4bf27646 (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-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 29855f03..510a40dc 100755
--- a/emcc
+++ b/emcc
@@ -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):