Skip to content

Commit 21c2609

Browse files
committed
Add new flag to enable experimental emit-module for the target variant from a single driver invocation
This flag will be used to control opting into behavior introduced in swiftlang/swift-driver#1856
1 parent 5eb85ac commit 21c2609

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Option/Options.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,10 @@ def explain_module_dependency_detailed : Separate<["-"], "explain-module-depende
15711571
def explicit_auto_linking : Flag<["-"], "explicit-auto-linking">,
15721572
Flags<[NewDriverOnlyOption]>,
15731573
HelpText<"Instead of linker-load directives, have the driver specify all link dependencies on the linker invocation. Requires '-explicit-module-build'.">;
1574+
1575+
def experimental_emit_variant_module : Flag<["-"], "experimental-emit-variant-module">,
1576+
Flags<[NewDriverOnlyOption]>,
1577+
HelpText<"When a target variant triple is specified, the same driver invocation will emit two Swift modules, one for the primary target and one for the variant.">;
15741578

15751579
def min_inlining_target_version : Separate<["-"], "target-min-inlining-version">,
15761580
Flags<[FrontendOption, ModuleInterfaceOption]>,

0 commit comments

Comments
 (0)