mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Allow the use of SPI in API for SPI modules
When the whole module has an SPI distribution, SPI declarations can be used in API. rdar://75335462
This commit is contained in:
@@ -862,7 +862,7 @@ static bool emitAnyWholeModulePostTypeCheckSupplementaryOutputs(
|
||||
}
|
||||
|
||||
if (opts.InputsAndOutputs.hasPrivateModuleInterfaceOutputPath()) {
|
||||
// Copy the settings from the module interface
|
||||
// Copy the settings from the module interface to add SPI printing.
|
||||
ModuleInterfaceOptions privOpts = Invocation.getModuleInterfaceOptions();
|
||||
privOpts.PrintSPIs = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user