Skip to content

Commit a91af1f

Browse files
authored
[Driver] -suppress-warnings and -warnings-as-errors trigger full rebuilds. (#6263)
...in order to generate the correct diagnostics. It would be nice(TM) if the suppression or warning-to-error mechanism was post-hoc, but it isn't today, and if we ever get that we can just stop using these flags. rdar://problem/25560819
1 parent 7337d5c commit a91af1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Option/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,11 @@ def disable_swift_bridge_attr : Flag<["-"], "disable-swift-bridge-attr">,
238238

239239
// Diagnostic control options
240240
def suppress_warnings : Flag<["-"], "suppress-warnings">,
241-
Flags<[FrontendOption, DoesNotAffectIncrementalBuild]>,
241+
Flags<[FrontendOption]>,
242242
HelpText<"Suppress all warnings">;
243243

244244
def warnings_as_errors : Flag<["-"], "warnings-as-errors">,
245-
Flags<[FrontendOption, DoesNotAffectIncrementalBuild]>,
245+
Flags<[FrontendOption]>,
246246
HelpText<"Treat warnings as errors">;
247247

248248
def continue_building_after_errors : Flag<["-"], "continue-building-after-errors">,

0 commit comments

Comments
 (0)