Skip to content

Commit 4a86714

Browse files
authored
[Driver] Mark a few more flags as DoesNotAffectIncrementalBuild. (#5480)
...so that adding or removing them doesn't force a rebuild.
1 parent 1eeba39 commit 4a86714

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/swift/Option/Options.td

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def help_hidden : Flag<["-", "--"], "help-hidden">,
109109
Flags<[HelpHidden, FrontendOption]>,
110110
HelpText<"Display available options, including hidden options">;
111111

112-
def v : Flag<["-"], "v">,
112+
def v : Flag<["-"], "v">, Flags<[DoesNotAffectIncrementalBuild]>,
113113
HelpText<"Show commands to run and use verbose output">;
114114
def version : Flag<["-", "--"], "version">,
115115
HelpText<"Print version information and exit">;
@@ -175,10 +175,11 @@ def output_file_map : Separate<["-"], "output-file-map">,
175175
def output_file_map_EQ : Joined<["-"], "output-file-map=">,
176176
Alias<output_file_map>;
177177

178-
def save_temps : Flag<["-"], "save-temps">, Flags<[NoInteractiveOption]>,
178+
def save_temps : Flag<["-"], "save-temps">,
179+
Flags<[NoInteractiveOption,DoesNotAffectIncrementalBuild]>,
179180
HelpText<"Save intermediate compilation results">;
180181
def driver_time_compilation : Flag<["-"], "driver-time-compilation">,
181-
Flags<[NoInteractiveOption]>,
182+
Flags<[NoInteractiveOption,DoesNotAffectIncrementalBuild]>,
182183
HelpText<"Prints the total time it took to execute all compilation tasks">;
183184

184185
def emit_dependencies : Flag<["-"], "emit-dependencies">,
@@ -277,9 +278,10 @@ def no_link_objc_runtime : Flag<["-"], "no-link-objc-runtime">,
277278
HelpText<"Don't link in additions to the Objective-C runtime">;
278279

279280
def static_stdlib: Flag<["-"], "static-stdlib">,
281+
Flags<[DoesNotAffectIncrementalBuild]>,
280282
HelpText<"Statically link the Swift standard library">;
281283
def no_static_stdlib: Flag<["-"], "no-static-stdlib">,
282-
Flags<[HelpHidden]>,
284+
Flags<[HelpHidden,DoesNotAffectIncrementalBuild]>,
283285
HelpText<"Don't statically link the Swift standard library">;
284286

285287
def static_executable : Flag<["-"], "static-executable">,

0 commit comments

Comments
 (0)