-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Batch Mode] Very simple and safe fix for batch mode diagnostic suppression bug. Includes tests. #19261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci please test |
Looks good to me. We should also put the tests in master! |
@swift-ci please nominate |
I'll put the tests into master. |
Build failed |
// Verify that -Wno-* options are applied. | ||
// RUN: %empty-directory(%t) | ||
|
||
// RUN: %target-swift-frontend -module-cache-path %t -enable-objc-interop -typecheck %s -F %S/Inputs/frameworks -Xcc -Wno-#warnings 2>&1 | %FileCheck -check-prefix CHECK-NO-WARN -allow-empty %s | ||
|
||
// XFAIL: linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Because I changed the test to explicitly pass -enable-objc-interop
, it'll pass on Linux now too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! That explains it. Thanks.
@swift-ci please test |
Build failed |
Build failed |
A much smaller and safer fix for the batch mode bug where all diagnostic outputs could be truncated, leaving the user with no diagnostics.
Scope of issue: User gets no diagnostics when all errors are present in non-primaries, e.g. an Objective-C module import error.
Origination: Initial implementation of batch mode.
Risk: Very very small. Adds one flag, set in one place, tested in one place right where the bad behavior would otherwise occur.
Reviewed by: Jordan Rose informally, will get a formal review from him.
Testing: Normal regression tests.
Radar: rdar://43033749, clone of rdar://42314665.
rdar://44362180