Commit b6b1b15
committed
fix(windows): explicitly specify wasm-component-ld.exe linker on Windows
The wasm32-wasip2 Rust target uses wasm-component-ld as its linker, but on
Windows this executable is named wasm-component-ld.exe. The Rust compiler
doesn't automatically append .exe when looking for the linker, causing
builds to fail on Windows with 'linker not found' errors.
This change adds a Windows-specific rustc flag using Bazel's select() to
explicitly specify the .exe extension on Windows platforms while keeping
the default behavior on other platforms.
Fixes Windows BCR compatibility test failures.1 parent 44887aa commit b6b1b15
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
314 | 323 | | |
315 | 324 | | |
316 | 325 | | |
| |||
0 commit comments