Skip to content

Commit 30f484d

Browse files
committed
ignore argument after -I -L for purposes of input detection in emcc
1 parent 98d730f commit 30f484d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

emcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ try:
751751

752752
if i > 0:
753753
prev = newargs[i-1]
754-
if prev in ['-MT', '-install_name']: continue # ignore this gcc-style argument
754+
if prev in ['-MT', '-install_name', '-I', '-L']: continue # ignore this gcc-style argument
755755

756756
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
757757
newargs[i] = ''

0 commit comments

Comments
 (0)