diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-21 20:28:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-21 20:28:49 +0200 |
| commit | d04e2e2858a3805f170a2934c9da45205965253c (patch) | |
| tree | 5d30e39fef6aaf31366f0db20eb2af9c8bee77ff | |
| parent | 639853fea566a66a6f5c3e45a53b6139d8206ca4 (diff) | |
| parent | 51cf3815cec9640787b91b407c7b39fff60ff32c (diff) | |
| download | rust-d04e2e2858a3805f170a2934c9da45205965253c.tar.gz rust-d04e2e2858a3805f170a2934c9da45205965253c.zip | |
Rollup merge of #125369 - saethlin:synthetic-targets-dont-cc, r=onur-ozkan
Don't do cc detection for synthetic targets Fixes https://github.com/rust-lang/rust/issues/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.
| -rw-r--r-- | src/bootstrap/src/core/build_steps/synthetic_targets.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/src/core/build_steps/synthetic_targets.rs b/src/bootstrap/src/core/build_steps/synthetic_targets.rs index 89d50b5ffff..281a9b093b9 100644 --- a/src/bootstrap/src/core/build_steps/synthetic_targets.rs +++ b/src/bootstrap/src/core/build_steps/synthetic_targets.rs @@ -80,8 +80,5 @@ fn create_synthetic_target( customize(spec_map); std::fs::write(&path, serde_json::to_vec_pretty(&spec).unwrap()).unwrap(); - let target = TargetSelection::create_synthetic(&name, path.to_str().unwrap()); - crate::utils::cc_detect::find_target(builder, target); - - target + TargetSelection::create_synthetic(&name, path.to_str().unwrap()) } |
