Skip to content

Commit b1015f5

Browse files
committed
compile other no-std crates
1 parent bca569f commit b1015f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/compile.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ pub fn std_cargo(build: &Builder,
145145
}
146146

147147
if build.no_std(target) == Some(true) {
148-
// for no-std targets we only compile core and compiler-builtins
148+
// for no-std targets we only compile a few no_std crates
149149
cargo.arg("--features").arg("c mem")
150+
.args(&["-p", "alloc"])
151+
.args(&["-p", "compiler_builtins"])
152+
.args(&["-p", "std_unicode"])
150153
.arg("--manifest-path")
151154
.arg(build.src.join("src/rustc/compiler_builtins_shim/Cargo.toml"));
152155
} else {

0 commit comments

Comments
 (0)