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 4ee2a0aCopy full SHA for 4ee2a0a
tests/testsuite/pgo.rs
@@ -22,10 +22,15 @@ 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(
28
+ target_os = "linux",
29
+ cargo_test(nightly, reason = "rust-lang/rust#133675")
30
+)]
31
// macOS may emit different LLVM PGO warnings.
32
// Windows LLVM has different requirements.
-#[cfg_attr(not(target_os = "linux"), ignore = "linux only")]
33
+#[cfg_attr(not(target_os = "linux"), cargo_test, ignore = "linux only")]
34
fn pgo_works() {
35
let Some(llvm_profdata) = llvm_profdata() else {
36
return;
0 commit comments