Skip to content

Commit

Permalink
Don't strip target features in wasm-emscripten-finalize (#7043)
Browse files Browse the repository at this point in the history
This makes the behavior consistent with emcc builds where we don't run
finalization, and potentially makes testing and debugging easier.
Emscripten still strips the target features section when optimizing.
  • Loading branch information
dschuff authored Oct 30, 2024
1 parent a0f77ad commit 39bf87e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/tools/wasm-emscripten-finalize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@ int main(int argc, const char* argv[]) {
passRunner.add("legalize-js-interface");
}

passRunner.add("strip-target-features");

// If DWARF is unused, strip it out. This avoids us keeping it alive
// until wasm-opt strips it later.
if (!DWARF) {
Expand Down
1 change: 1 addition & 0 deletions test/lld/em_asm_pthread.wasm.out
Original file line number Diff line number Diff line change
Expand Up @@ -12830,4 +12830,5 @@
)
)
;; custom section "producers", size 172
;; features section: threads, mutable-globals, bulk-memory, sign-ext
)

0 comments on commit 39bf87e

Please sign in to comment.