Skip to content

Commit c370bf4

Browse files
committed
Don't use stage0 compiler for wasm-component-ld
Switch it to using a just-built standard library which enables it to be cross compiled. Additionally allow it access to `min_specialization` which `ahash`, a dependency, wants.
1 parent 4cd6eee commit c370bf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ impl Step for Assemble {
18371837
// `wasm32-wasip2` target of Rust.
18381838
let wasm_component_ld_exe =
18391839
builder.ensure(crate::core::build_steps::tool::WasmComponentLd {
1840-
compiler: build_compiler.with_stage(0),
1840+
compiler: build_compiler,
18411841
target: target_compiler.host,
18421842
});
18431843
builder.copy_link(

src/bootstrap/src/core/build_steps/tool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ bootstrap_tool!(
337337
RustdocGUITest, "src/tools/rustdoc-gui-test", "rustdoc-gui-test", is_unstable_tool = true, allow_features = "test";
338338
CoverageDump, "src/tools/coverage-dump", "coverage-dump";
339339
RustcPerfWrapper, "src/tools/rustc-perf-wrapper", "rustc-perf-wrapper";
340-
WasmComponentLd, "src/tools/wasm-component-ld", "wasm-component-ld";
340+
WasmComponentLd, "src/tools/wasm-component-ld", "wasm-component-ld", is_unstable_tool = true, allow_features = "min_specialization";
341341
);
342342

343343
#[derive(Debug, Clone, Hash, PartialEq, Eq)]

0 commit comments

Comments
 (0)