Skip to content

Commit a9f696b

Browse files
authored
Merge pull request #82547 from artemcm/NewDriverComboEmitVariantModuleFlag
Add new flag to enable experimental emit-module for the target variant from a single driver invocation
2 parents b75d8f0 + 21c2609 commit a9f696b

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
@@ -1567,6 +1567,10 @@ def explain_module_dependency_detailed : Separate<["-"], "explain-module-depende
15671567
def explicit_auto_linking : Flag<["-"], "explicit-auto-linking">,
15681568
Flags<[NewDriverOnlyOption]>,
15691569
HelpText<"Instead of linker-load directives, have the driver specify all link dependencies on the linker invocation. Requires '-explicit-module-build'.">;
1570+
1571+
def experimental_emit_variant_module : Flag<["-"], "experimental-emit-variant-module">,
1572+
Flags<[NewDriverOnlyOption]>,
1573+
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.">;
15701574

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

0 commit comments

Comments
 (0)