We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c4fd1 commit 7a021c3Copy full SHA for 7a021c3
tests/testsuite/pgo.rs
@@ -22,10 +22,12 @@ fn llvm_profdata() -> Option<PathBuf> {
22
})
23
}
24
25
-#[cargo_test]
+// Rustc build may be without profiling support.
26
+// Mark it as nightly so it won't run on rust-lang/rust CI.
27
+#[cfg_attr(target_os = "linux", cargo_test(nightly, reason = "rust-lang/rust#133675"))]
28
// macOS may emit different LLVM PGO warnings.
29
// Windows LLVM has different requirements.
-#[cfg_attr(not(target_os = "linux"), ignore = "linux only")]
30
+#[cfg_attr(not(target_os = "linux"), cargo_test, ignore = "linux only")]
31
fn pgo_works() {
32
let Some(llvm_profdata) = llvm_profdata() else {
33
return;
0 commit comments