Skip to content

Commit 360059e

Browse files
committed
Auto merge of #12972 - ehuss:windows-gnu-ignore-json-target, r=epage
Ignore changing_spec_relearns_crate_types on windows-gnu This disables the `custom_target::changing_spec_relearns_crate_types` on windows-gnu targets for the same reason as #12763. The update to LLVM 17 has started to cause lld to crash when using a custom target. cc rust-lang/rust#115985 I surveyed the rest of the testsuite, and I don't see any other tests that perform linking with custom targets.
2 parents 4e02f11 + 8161ba5 commit 360059e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testsuite/custom_target.rs

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ fn changing_spec_rebuilds() {
178178
}
179179

180180
#[cargo_test(nightly, reason = "requires features no_core, lang_items")]
181+
// This is randomly crashing in lld. See https://github.com/rust-lang/rust/issues/115985
182+
#[cfg_attr(all(windows, target_env = "gnu"), ignore = "windows-gnu lld crashing")]
181183
fn changing_spec_relearns_crate_types() {
182184
// Changing the .json file will invalidate the cache of crate types.
183185
let p = project()

0 commit comments

Comments
 (0)