|
1 | 1 | use crate::cgu_reuse_tracker::CguReuseTracker;
|
2 | 2 | use crate::code_stats::CodeStats;
|
3 | 3 | pub use crate::code_stats::{DataTypeKind, FieldInfo, SizeKind, VariantInfo};
|
4 |
| -use crate::config::{self, CrateType, OutputType, PrintRequest, SwitchWithOptPath}; |
| 4 | +use crate::config::{self, CrateType, OutputType, SwitchWithOptPath}; |
5 | 5 | use crate::filesearch;
|
6 | 6 | use crate::lint::{self, LintId};
|
7 | 7 | use crate::parse::ParseSess;
|
@@ -1440,25 +1440,6 @@ fn validate_commandline_args_with_session_available(sess: &Session) {
|
1440 | 1440 | }
|
1441 | 1441 | }
|
1442 | 1442 |
|
1443 |
| - // PGO does not work reliably with panic=unwind on Windows. Let's make it |
1444 |
| - // an error to combine the two for now. It always runs into an assertions |
1445 |
| - // if LLVM is built with assertions, but without assertions it sometimes |
1446 |
| - // does not crash and will probably generate a corrupted binary. |
1447 |
| - // We should only display this error if we're actually going to run PGO. |
1448 |
| - // If we're just supposed to print out some data, don't show the error (#61002). |
1449 |
| - if sess.opts.cg.profile_generate.enabled() |
1450 |
| - && sess.target.is_like_msvc |
1451 |
| - && sess.panic_strategy() == PanicStrategy::Unwind |
1452 |
| - && sess.opts.prints.iter().all(|&p| p == PrintRequest::NativeStaticLibs) |
1453 |
| - { |
1454 |
| - sess.err( |
1455 |
| - "Profile-guided optimization does not yet work in conjunction \ |
1456 |
| - with `-Cpanic=unwind` on Windows when targeting MSVC. \ |
1457 |
| - See issue #61002 <https://github.com/rust-lang/rust/issues/61002> \ |
1458 |
| - for more information.", |
1459 |
| - ); |
1460 |
| - } |
1461 |
| - |
1462 | 1443 | // Sanitizers can only be used on platforms that we know have working sanitizer codegen.
|
1463 | 1444 | let supported_sanitizers = sess.target.options.supported_sanitizers;
|
1464 | 1445 | let unsupported_sanitizers = sess.opts.debugging_opts.sanitizer - supported_sanitizers;
|
|
0 commit comments