std: Activate compiler_builtins mem feature for no_std targets
This was an accidental regression from #56092, but for `no_std` targets being built and distributed we want to be sure to activate the compiler-builtins `mem` feature which demangles important memory-related intrinsics.
This commit is contained in:
parent
7d03617bab
commit
c811915eaf
2 changed files with 6 additions and 1 deletions
|
|
@ -155,7 +155,9 @@ pub fn std_cargo(builder: &Builder,
|
|||
cargo
|
||||
.args(&["-p", "alloc"])
|
||||
.arg("--manifest-path")
|
||||
.arg(builder.src.join("src/liballoc/Cargo.toml"));
|
||||
.arg(builder.src.join("src/liballoc/Cargo.toml"))
|
||||
.arg("--features")
|
||||
.arg("compiler-builtins-mem");
|
||||
} else {
|
||||
let features = builder.std_features();
|
||||
|
||||
|
|
|
|||
|
|
@ -28,3 +28,6 @@ path = "../liballoc/benches/lib.rs"
|
|||
name = "vec_deque_append_bench"
|
||||
path = "../liballoc/benches/vec_deque_append.rs"
|
||||
harness = false
|
||||
|
||||
[features]
|
||||
compiler-builtins-mem = ['compiler_builtins/mem']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue