mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
Don't look for cc/cxx when testing with bogus targets
This commit is contained in:
parent
49317cd511
commit
52e1c84732
@ -140,14 +140,18 @@ pub fn check(build: &mut Build) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd_finder.must_have(build.cc(*target));
|
if !build.config.dry_run {
|
||||||
if let Some(ar) = build.ar(*target) {
|
cmd_finder.must_have(build.cc(*target));
|
||||||
cmd_finder.must_have(ar);
|
if let Some(ar) = build.ar(*target) {
|
||||||
|
cmd_finder.must_have(ar);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for host in &build.hosts {
|
for host in &build.hosts {
|
||||||
cmd_finder.must_have(build.cxx(*host).unwrap());
|
if !build.config.dry_run {
|
||||||
|
cmd_finder.must_have(build.cxx(*host).unwrap());
|
||||||
|
}
|
||||||
|
|
||||||
// The msvc hosts don't use jemalloc, turn it off globally to
|
// The msvc hosts don't use jemalloc, turn it off globally to
|
||||||
// avoid packaging the dummy liballoc_jemalloc on that platform.
|
// avoid packaging the dummy liballoc_jemalloc on that platform.
|
||||||
|
Loading…
Reference in New Issue
Block a user