add a dist-thumb builder to build rust-std for the THUMB targets

the rust-std component only contains the core and compiler-builtins (+c +mem) crates

cc #49382
This commit is contained in:
Jorge Aparicio
2018-04-01 18:50:21 +02:00
parent cb1f89864e
commit 68b54a5f43
7 changed files with 89 additions and 37 deletions

View File

@@ -709,6 +709,12 @@ impl Build {
.map(|p| &**p)
}
/// Returns true if this is a no-std `target`, if defined
fn no_std(&self, target: Interned<String>) -> Option<bool> {
self.config.target_config.get(&target)
.map(|t| t.no_std)
}
/// Returns whether the target will be tested using the `remote-test-client`
/// and `remote-test-server` binaries.
fn remote_tested(&self, target: Interned<String>) -> bool {