Skip to content

Commit 95a79a0

Browse files
author
Muyouz
committed
fix(ci): deduplicate wasm32-wasip1 cargo config
1 parent e4685d6 commit 95a79a0

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

.cargo/config.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ rustflags = ["-C", "link-args=-Wl,--warn-unresolved-symbols"]
1111
[target.'cfg(target_os = "windows")']
1212
rustflags = ["-C", "link-args=/FORCE"]
1313

14-
# Allow undefined symbols when building SWC WASM plugins for wasm32-wasip1.
15-
# These symbols (e.g. __emit_diagnostics, __set_transform_result) are host-provided
16-
# functions imported at runtime by the SWC plugin runner. Rust 1.96.0 tightened
17-
# the LLD linker's default behavior for wasm32-wasip1, so we must explicitly permit
18-
# them here so they become WASM import entries instead of link errors.
19-
[target.wasm32-wasip1]
20-
rustflags = ["-C", "link-args=--allow-undefined"]
21-
2214
[target.x86_64-pc-windows-msvc]
2315
rustflags = ["-C", "target-feature=+crt-static"]
2416
[target.i686-pc-windows-msvc]

0 commit comments

Comments
 (0)