mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Write in the swiftmodule if it's built from a swiftinterface
This information will allow us to distinguish swiftmodule built from source vs swiftinterface.
This commit is contained in:
@@ -249,6 +249,7 @@ std::error_code ExplicitModuleInterfaceBuilder::buildSwiftModuleFromInterface(
|
||||
|
||||
SILOptions &SILOpts = Invocation.getSILOptions();
|
||||
auto Mod = Instance.getMainModule();
|
||||
Mod->setIsBuiltFromInterface(true);
|
||||
auto &TC = Instance.getSILTypes();
|
||||
auto SILMod = performASTLowering(Mod, TC, SILOpts);
|
||||
if (!SILMod) {
|
||||
|
||||
Reference in New Issue
Block a user