Skip to content

Commit

Permalink
[emcc.py] Remove redundant check. NFC (emscripten-core#23495)
Browse files Browse the repository at this point in the history
This only run in COMPILE_AND_LINK mode (see assertion above).
  • Loading branch information
sbc100 authored Jan 28, 2025
1 parent 3b27120 commit a8385bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,8 @@ def compile_source_file(i, input_file):
if get_file_suffix(input_file) in ['.pcm']:
cmd = [c for c in cmd if not c.startswith('-fprebuilt-module-path=')]
cmd += compile_args + ['-c', input_file, '-o', output_file]
if state.mode == Mode.COMPILE_AND_LINK and options.requested_debug == '-gsplit-dwarf':
# When running in COMPILE_AND_LINK mode we compile to temporary location
if options.requested_debug == '-gsplit-dwarf':
# When running in COMPILE_AND_LINK mode we compile objects to a temporary location
# but we want the `.dwo` file to be generated in the current working directory,
# like it is under clang. We could avoid this hack if we use the clang driver
# to generate the temporary files, but that would also involve using the clang
Expand Down

0 comments on commit a8385bf

Please sign in to comment.