File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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) {
13031303 }
13041304
13051305 // PGO does not work reliably with panic=unwind on Windows. Let's make it
1306- // an error to combine the two for now. It always runs into an assertions
1306+ // a warning to combine the two for now. It always runs into an assertions
13071307 // if LLVM is built with assertions, but without assertions it sometimes
13081308 // does not crash and will probably generate a corrupted binary.
13091309 if sess. opts . cg . profile_generate . enabled ( ) &&
13101310 sess. target . target . options . is_like_msvc &&
13111311 sess. panic_strategy ( ) == PanicStrategy :: Unwind {
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.") ;
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.") ;
13151315 }
13161316}
13171317
You can’t perform that action at this time.
0 commit comments