diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-04-04 22:42:56 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-04-04 22:42:56 +0200 |
| commit | b1015f5c5a4dcd6118b86ef5361371f04a7bce8b (patch) | |
| tree | bd2f37ce2611adc04084908fa946d484baa99cb5 | |
| parent | bca569f57c53e219270be72ed5976b8167fcd246 (diff) | |
compile other no-std crates
| -rw-r--r-- | src/bootstrap/compile.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/compile.rs b/src/bootstrap/compile.rs index eaf4ab272c6..51e7a788315 100644 --- a/src/bootstrap/compile.rs +++ b/src/bootstrap/compile.rs @@ -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 { |
