Skip to content

Commit d26cfc9

Browse files
authored
Unrolled build for rust-lang#125369
Rollup merge of rust-lang#125369 - saethlin:synthetic-targets-dont-cc, r=onur-ozkan Don't do cc detection for synthetic targets Fixes rust-lang#125365 Synthetic targets only exist for mir-opt tests, and the mir-opt test suite is in general designed to avoid any use of a C compiler. We don't need to do CC detection. It's unclear to me how this code didn't cause issues before.
2 parents 5065123 + 51cf381 commit d26cfc9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/bootstrap/src/core/build_steps/synthetic_targets.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,5 @@ fn create_synthetic_target(
8080
customize(spec_map);
8181

8282
std::fs::write(&path, serde_json::to_vec_pretty(&spec).unwrap()).unwrap();
83-
let target = TargetSelection::create_synthetic(&name, path.to_str().unwrap());
84-
crate::utils::cc_detect::find_target(builder, target);
85-
86-
target
83+
TargetSelection::create_synthetic(&name, path.to_str().unwrap())
8784
}

0 commit comments

Comments
 (0)