Skip to content

Commit b715cc7

Browse files
committed
Add missing rustc binaries to rustc_lib filegroup
Adds `rust-objcopy` and `wasm-component-ld` to the rustc_lib filegroup in repository_utils.bzl. These binaries are present in recent rustc distributions (wasm-component-ld since 1.82.0, rust-objcopy since 1.84.0) but were not declared in the filegroup. On Windows, Bazel copies files into the sandbox rather than symlinking, so only explicitly listed files are available. This caused wasm32-wasip2 builds to fail with "linker 'wasm-component-ld.exe' not found". On Linux/macOS, the issue was masked by symlink-based sandboxing which allowed access to unlisted files in the same directory.
1 parent a3bb997 commit b715cc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/private/repository_utils.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ filegroup(
4747
"lib/rustlib/{target_triple}/codegen-backends/*{dylib_ext}",
4848
"lib/rustlib/{target_triple}/bin/gcc-ld/*",
4949
"lib/rustlib/{target_triple}/bin/rust-lld{binary_ext}",
50+
"lib/rustlib/{target_triple}/bin/rust-objcopy{binary_ext}",
51+
"lib/rustlib/{target_triple}/bin/wasm-component-ld{binary_ext}",
5052
"lib/rustlib/{target_triple}/lib/*{dylib_ext}*",
5153
"lib/rustlib/{target_triple}/lib/*.rmeta",
5254
],

0 commit comments

Comments
 (0)