Skip to content

Commit 69987f1

Browse files
authored
Remove unnecessary list in emcc.py. NFC (#19525)
1 parent 96a832c commit 69987f1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

emcc.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,9 +3222,6 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
32223222
minified_worker = building.acorn_optimizer(worklet_output, ['minifyWhitespace'], return_output=True)
32233223
open(worklet_output, 'w').write(minified_worker)
32243224

3225-
# track files that will need native eols
3226-
generated_text_files_with_native_eols = []
3227-
32283225
if settings.MODULARIZE:
32293226
modularize()
32303227

@@ -3271,9 +3268,6 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
32713268
# The JS is now final. Move it to its final location
32723269
move_file(final_js, js_target)
32733270

3274-
if not settings.SINGLE_FILE:
3275-
generated_text_files_with_native_eols += [js_target]
3276-
32773271
target_basename = unsuffixed_basename(target)
32783272

32793273
# If we were asked to also generate HTML, do that
@@ -3290,8 +3284,8 @@ def phase_final_emitting(options, state, target, wasm_target, memfile):
32903284
diagnostics.warning('experimental', 'The SPLIT_MODULE setting is experimental and subject to change')
32913285
do_split_module(wasm_target, options)
32923286

3293-
for f in generated_text_files_with_native_eols:
3294-
tools.line_endings.convert_line_endings_in_file(f, os.linesep, options.output_eol)
3287+
if not settings.SINGLE_FILE:
3288+
tools.line_endings.convert_line_endings_in_file(js_target, os.linesep, options.output_eol)
32953289

32963290
if options.executable:
32973291
make_js_executable(js_target)

0 commit comments

Comments
 (0)