Skip to content

Commit 32380f4

Browse files
author
Josh Learn
committed
[Driver] Add -assert-config as module interface option
Currently the `-assert-config` flag is not serialized into the module interface. This can cause a subtle issue when rebuilding a Swift module from the corresponding .swiftinterface when the module cache has gone stale. This change adds `-assert-config` as a module interface option so that it will be serialized into the header of the .swiftinterface file of the module. rdar://72452477
1 parent 2c5abd8 commit 32380f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Option/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def debug_info_store_invocation : Flag<["-"], "debug-info-store-invocation">,
793793

794794
// Assert configuration identifiers.
795795
def AssertConfig : Separate<["-"], "assert-config">,
796-
Flags<[FrontendOption]>,
796+
Flags<[FrontendOption, ModuleInterfaceOption]>,
797797
HelpText<"Specify the assert_configuration replacement. "
798798
"Possible values are Debug, Release, Unchecked, DisableReplacement.">;
799799

0 commit comments

Comments
 (0)