mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ModuleInterface] Specify module as supplementary rather than main output.
This commit is contained in:
@@ -98,8 +98,10 @@ ParseableInterfaceModuleLoader::configureSubInvocationAndOutputPath(
|
||||
auto &FEOpts = SubInvocation.getFrontendOptions();
|
||||
FEOpts.RequestedAction = FrontendOptions::ActionType::EmitModuleOnly;
|
||||
FEOpts.InputsAndOutputs.addPrimaryInputFile(InPath);
|
||||
FEOpts.InputsAndOutputs.setMainAndSupplementaryOutputs(
|
||||
{OutPath.str()}, {SupplementaryOutputPaths()});
|
||||
SupplementaryOutputPaths SOPs;
|
||||
SOPs.ModuleOutputPath = OutPath.str();
|
||||
StringRef MainOut = "/dev/null";
|
||||
FEOpts.InputsAndOutputs.setMainAndSupplementaryOutputs({MainOut}, {SOPs});
|
||||
}
|
||||
|
||||
// FIXME: this needs to be a more extensive up-to-date check.
|
||||
|
||||
Reference in New Issue
Block a user