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:
@@ -770,6 +770,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
|
||||
M.setImplicitDynamicEnabled();
|
||||
if (loadedModuleFile->hasIncrementalInfo())
|
||||
M.setHasIncrementalInfo();
|
||||
if (loadedModuleFile->isBuiltFromInterface())
|
||||
M.setIsBuiltFromInterface();
|
||||
if (!loadedModuleFile->getModuleABIName().empty())
|
||||
M.setABIName(Ctx.getIdentifier(loadedModuleFile->getModuleABIName()));
|
||||
if (loadedModuleFile->isConcurrencyChecked())
|
||||
|
||||
Reference in New Issue
Block a user