aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-03 13:36:37 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-03 13:36:37 -0800
commit30f484d68f8bc1db37862f820636dc763c7b253c (patch)
tree279f056d2fd43ceaf65f1df9cb569024d9cd4496
parent98d730f930f1054afa1dee358a203e2378e5afef (diff)
ignore argument after -I -L for purposes of input detection in emcc
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index dc8bd630..7ed0adb2 100755
--- a/emcc
+++ b/emcc
@@ -751,7 +751,7 @@ try:
if i > 0:
prev = newargs[i-1]
- if prev in ['-MT', '-install_name']: continue # ignore this gcc-style argument
+ if prev in ['-MT', '-install_name', '-I', '-L']: continue # ignore this gcc-style argument
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] = ''