diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-12-14 09:05:31 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-12-14 09:05:31 -0800 |
| commit | c811915eafb349759d2bba9d7a39a53aef02bb3d (patch) | |
| tree | b072af96663be962f5e5c5745ff92b61f35c4232 /src/bootstrap | |
| parent | 7d03617bab24a689bc704e71e509b9c11c655f26 (diff) | |
| download | rust-c811915eafb349759d2bba9d7a39a53aef02bb3d.tar.gz rust-c811915eafb349759d2bba9d7a39a53aef02bb3d.zip | |
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.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/compile.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index c84abe42a63..689d0530f8b 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -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(); |
