File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1303,15 +1303,15 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
1303
1303
}
1304
1304
1305
1305
// PGO does not work reliably with panic=unwind on Windows. Let's make it
1306
- // a warning to combine the two for now. It always runs into an assertions
1306
+ // an error to combine the two for now. It always runs into an assertions
1307
1307
// if LLVM is built with assertions, but without assertions it sometimes
1308
1308
// does not crash and will probably generate a corrupted binary.
1309
1309
if sess. opts . cg . profile_generate . enabled ( ) &&
1310
1310
sess. target . target . options . is_like_msvc &&
1311
1311
sess. panic_strategy ( ) == PanicStrategy :: Unwind {
1312
- sess. warn ( "Profile-guided optimization does not yet work in conjunction \
1313
- with `-Cpanic=unwind` on Windows when targeting MSVC. \
1314
- See https://github.com/rust-lang/rust/issues/61002 for details.") ;
1312
+ sess. err ( "Profile-guided optimization does not yet work in conjunction \
1313
+ with `-Cpanic=unwind` on Windows when targeting MSVC. \
1314
+ See https://github.com/rust-lang/rust/issues/61002 for details.") ;
1315
1315
}
1316
1316
}
1317
1317
You can’t perform that action at this time.
0 commit comments