mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Guard with env var SWIFT_ENABLE_PACKAGE_INTERFACE_LOAD
Update tests and formatting
This commit is contained in:
@@ -596,8 +596,9 @@ std::string SerializedModuleBaseName::getName(file_types::ID fileTy) const {
|
||||
return std::string(result.str());
|
||||
}
|
||||
|
||||
llvm::Optional<std::string> SerializedModuleBaseName::getPackageInterfacePathIfInSamePackage(llvm::vfs::FileSystem &fs, ASTContext &ctx) const {
|
||||
|
||||
llvm::Optional<std::string>
|
||||
SerializedModuleBaseName::getPackageInterfacePathIfInSamePackage(llvm::vfs::FileSystem &fs,
|
||||
ASTContext &ctx) const {
|
||||
if (!ctx.LangOpts.EnablePackageInterfaceLoad)
|
||||
return {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user