Skip to content

Commit 3850bd0

Browse files
authored
tests/runner.py: Pass -I<dirname> as a single flag. NFC. (#8970)
1 parent 005f0f4 commit 3850bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/runner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ def build(self, src, dirname, filename, main_file=None,
653653
except:
654654
pass
655655
args = [PYTHON, EMCC] + self.get_emcc_args(main_file=True) + \
656-
['-I', dirname, '-I', os.path.join(dirname, 'include')] + \
656+
['-I' + dirname, '-I' + os.path.join(dirname, 'include')] + \
657657
['-I' + include for include in includes] + \
658658
['-c', f, '-o', f + '.o']
659659
run_process(args, stderr=self.stderr_redirect if not DEBUG else None)
@@ -682,7 +682,7 @@ def build(self, src, dirname, filename, main_file=None,
682682
shutil.move(all_files[i], all_files[i] + '.bc')
683683
all_files[i] += '.bc'
684684
args = [PYTHON, EMCC] + self.get_emcc_args(main_file=True) + \
685-
['-I', dirname, '-I', os.path.join(dirname, 'include')] + \
685+
['-I' + dirname, '-I' + os.path.join(dirname, 'include')] + \
686686
['-I' + include for include in includes] + \
687687
all_files + ['-o', filename + suffix]
688688

0 commit comments

Comments
 (0)