mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend/Serialization] Narrow -swift-compiler-version to -interface-compiler-version
It might be unexpected to future users that `-swift-compiler-version` would produce a version aligned to .swiftinterface instead of one used to build the .swiftmodule file. To avoid this possible confusion, let's scope down the version to `-interface-compiler-version` flag and `SWIFT_INTERFACE_COMPILER_VERSION` option in the module.
This commit is contained in:
@@ -1035,7 +1035,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
|
||||
M.setPackageName(Ctx.getIdentifier(loadedModuleFile->getModulePackageName()));
|
||||
}
|
||||
M.setUserModuleVersion(loadedModuleFile->getUserModuleVersion());
|
||||
M.setSwiftCompilerVersion(loadedModuleFile->getSwiftCompilerVersion());
|
||||
M.setSwiftInterfaceCompilerVersion(
|
||||
loadedModuleFile->getSwiftInterfaceCompilerVersion());
|
||||
for (auto name: loadedModuleFile->getAllowableClientNames()) {
|
||||
M.addAllowableClientName(Ctx.getIdentifier(name));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user