Skip to content

Commit

Permalink
Avoid generating redundant pthread worker.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Sep 11, 2024
1 parent 64e4df5 commit 1c7ced2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tools/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -2073,15 +2073,6 @@ def phase_final_emitting(options, state, target, wasm_target):
return

target_dir = os.path.dirname(os.path.abspath(target))
if settings.PTHREADS and not settings.STRICT:
worker_file = shared.replace_suffix(target, get_worker_js_suffix())
write_file(worker_file, '''\
// This file is no longer used by emscripten and has been created as a placeholder
// to allow build systems to transition away from depending on it.
//
// Future versions of emscripten will likely stop generating this file at all.
throw new Error('Dummy worker.js file should never be used');
''')

# Deploy the Wasm Worker bootstrap file as an output file (*.ww.js)
if settings.WASM_WORKERS == 1:
Expand Down

0 comments on commit 1c7ced2

Please sign in to comment.