Skip to content

Commit 0e40dac

Browse files
committed
[ModuleInterface] Introduce env var to test the module-alias workaround
Set the env var SWIFT_ALIAS_MODULE_NAMES_IN_INTERFACES to turn on generating swiftinterfaces with the AliasModuleNames workaround by default.
1 parent a1270f6 commit 0e40dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static void ParseModuleInterfaceArgs(ModuleInterfaceOptions &Opts,
371371
Opts.AliasModuleNames |=
372372
Args.hasFlag(OPT_alias_module_names_in_module_interface,
373373
OPT_disable_alias_module_names_in_module_interface,
374-
false);
374+
::getenv("SWIFT_ALIAS_MODULE_NAMES_IN_INTERFACES"));
375375
Opts.PrintFullConvention |=
376376
Args.hasArg(OPT_experimental_print_full_convention);
377377
Opts.ExperimentalSPIImports |=

0 commit comments

Comments
 (0)