Skip to content

Add new flag to enable experimental emit-module for the target variant from a single driver invocation #82547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/swift/Option/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,10 @@ def explain_module_dependency_detailed : Separate<["-"], "explain-module-depende
def explicit_auto_linking : Flag<["-"], "explicit-auto-linking">,
Flags<[NewDriverOnlyOption]>,
HelpText<"Instead of linker-load directives, have the driver specify all link dependencies on the linker invocation. Requires '-explicit-module-build'.">;

def experimental_emit_variant_module : Flag<["-"], "experimental-emit-variant-module">,
Flags<[NewDriverOnlyOption]>,
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.">;

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