Skip to content

Commit

Permalink
compile other no-std crates
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Apr 4, 2018
1 parent bca569f commit b1015f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ pub fn std_cargo(build: &Builder,
}

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

0 comments on commit b1015f5

Please sign in to comment.