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.
This commit is contained in:
parent
4cd6eee894
commit
c370bf44d8
@ -1837,7 +1837,7 @@ impl Step for Assemble {
|
|||||||
// `wasm32-wasip2` target of Rust.
|
// `wasm32-wasip2` target of Rust.
|
||||||
let wasm_component_ld_exe =
|
let wasm_component_ld_exe =
|
||||||
builder.ensure(crate::core::build_steps::tool::WasmComponentLd {
|
builder.ensure(crate::core::build_steps::tool::WasmComponentLd {
|
||||||
compiler: build_compiler.with_stage(0),
|
compiler: build_compiler,
|
||||||
target: target_compiler.host,
|
target: target_compiler.host,
|
||||||
});
|
});
|
||||||
builder.copy_link(
|
builder.copy_link(
|
||||||
|
@ -337,7 +337,7 @@ bootstrap_tool!(
|
|||||||
RustdocGUITest, "src/tools/rustdoc-gui-test", "rustdoc-gui-test", is_unstable_tool = true, allow_features = "test";
|
RustdocGUITest, "src/tools/rustdoc-gui-test", "rustdoc-gui-test", is_unstable_tool = true, allow_features = "test";
|
||||||
CoverageDump, "src/tools/coverage-dump", "coverage-dump";
|
CoverageDump, "src/tools/coverage-dump", "coverage-dump";
|
||||||
RustcPerfWrapper, "src/tools/rustc-perf-wrapper", "rustc-perf-wrapper";
|
RustcPerfWrapper, "src/tools/rustc-perf-wrapper", "rustc-perf-wrapper";
|
||||||
WasmComponentLd, "src/tools/wasm-component-ld", "wasm-component-ld";
|
WasmComponentLd, "src/tools/wasm-component-ld", "wasm-component-ld", is_unstable_tool = true, allow_features = "min_specialization";
|
||||||
);
|
);
|
||||||
|
|
||||||
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
|
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user