Skip to content

Commit a8385bf

Browse files
authored
[emcc.py] Remove redundant check. NFC (#23495)
This only run in COMPILE_AND_LINK mode (see assertion above).
1 parent 3b27120 commit a8385bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emcc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,8 @@ def compile_source_file(i, input_file):
980980
if get_file_suffix(input_file) in ['.pcm']:
981981
cmd = [c for c in cmd if not c.startswith('-fprebuilt-module-path=')]
982982
cmd += compile_args + ['-c', input_file, '-o', output_file]
983-
if state.mode == Mode.COMPILE_AND_LINK and options.requested_debug == '-gsplit-dwarf':
984-
# When running in COMPILE_AND_LINK mode we compile to temporary location
983+
if options.requested_debug == '-gsplit-dwarf':
984+
# When running in COMPILE_AND_LINK mode we compile objects to a temporary location
985985
# but we want the `.dwo` file to be generated in the current working directory,
986986
# like it is under clang. We could avoid this hack if we use the clang driver
987987
# to generate the temporary files, but that would also involve using the clang

0 commit comments

Comments
 (0)