@@ -2132,7 +2132,7 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
2132
2132
2133
2133
// Compute the inputs and object output dependency paths.
2134
2134
// Note that we compute the object file output paths here even if the compilation mode won't produce any, because these paths are used to compute the paths to other generated files.
2135
- // FIXME: If we want to match what Xcode did, then when using non-parallel WMO, we should include $(TARGET_NAME)-master .o as an output file, but not include the per-input-file object files as output files.
2135
+ // FIXME: If we want to match what Xcode did, then when using non-parallel WMO, we should include $(TARGET_NAME)-primary .o as an output file, but not include the per-input-file object files as output files.
2136
2136
let outputObjectExtension : String
2137
2137
switch cbc. scope. evaluate ( BuiltinMacros . SWIFT_LTO) {
2138
2138
case . yes, . yesThin:
@@ -2161,11 +2161,11 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
2161
2161
2162
2162
// Add const metadata outputs to extra compilation outputs
2163
2163
if await supportConstSupplementaryMetadata ( cbc, delegate, compilationMode: compilationMode) {
2164
- // If using whole module optimization then we use the -master .swiftconstvalues file from the sole compilation task.
2164
+ // If using whole module optimization then we use the -primary .swiftconstvalues file from the sole compilation task.
2165
2165
if isUsingWholeModuleOptimization {
2166
2166
if let outputPath = objectOutputPaths. first {
2167
- let masterSwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix + " -master "
2168
- let supplementaryConstMetadataOutputPath = outputPath. dirname. join ( masterSwiftBaseName + " .swiftconstvalues " )
2167
+ let primarySwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix + " -primary "
2168
+ let supplementaryConstMetadataOutputPath = outputPath. dirname. join ( primarySwiftBaseName + " .swiftconstvalues " )
2169
2169
extraOutputPaths. append ( supplementaryConstMetadataOutputPath)
2170
2170
delegate. declareGeneratedSwiftConstMetadataFile ( supplementaryConstMetadataOutputPath, architecture: arch)
2171
2171
}
@@ -2232,11 +2232,11 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
2232
2232
//
2233
2233
// FIXME: Can we simplify this to not require the full macro scope?
2234
2234
//
2235
- // If using whole module optimization then we use the -master .d file as the dependency file.
2235
+ // If using whole module optimization then we use the -primary .d file as the dependency file.
2236
2236
if let outputPath = objectOutputPaths. first {
2237
2237
if Self . shouldUseWholeModuleOptimization ( for: cbc. scope) . result {
2238
- let masterSwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix + " -master "
2239
- let dependenciesFilePath = outputPath. dirname. join ( masterSwiftBaseName + " .d " )
2238
+ let primarySwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix + " -primary "
2239
+ let dependenciesFilePath = outputPath. dirname. join ( primarySwiftBaseName + " .d " )
2240
2240
return dependenciesFilePath
2241
2241
} else {
2242
2242
// if not using WMO, we use the first .d file as all are the same
@@ -2348,8 +2348,8 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
2348
2348
let dependencyData : DependencyDataStyle ?
2349
2349
if await shouldEmitMakeStyleDependencies ( cbc. producer, cbc. scope, delegate: delegate) {
2350
2350
// FIXME: Duplication with `SwiftCompilerSpec.computeOutputFileMapContents`
2351
- let masterSwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix + " -master "
2352
- let emitModuleDependenciesFilePath = objectFileDir. join ( masterSwiftBaseName + " -emit-module.d " )
2351
+ let primarySwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + compilationMode. moduleBaseNameSuffix + " -primary "
2352
+ let emitModuleDependenciesFilePath = objectFileDir. join ( primarySwiftBaseName + " -emit-module.d " )
2353
2353
dependencyData = eagerCompilationEnabled ? . makefileIgnoringSubsequentOutputs( emitModuleDependenciesFilePath) : dependencyInfoPath. map ( DependencyDataStyle . makefileIgnoringSubsequentOutputs)
2354
2354
} else {
2355
2355
dependencyData = nil
@@ -2755,7 +2755,7 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
2755
2755
moduleDirPath = scope. evaluate ( BuiltinMacros . BUILT_PRODUCTS_DIR) . join ( moduleName + " .swiftmodule " )
2756
2756
}
2757
2757
if isProject {
2758
- // Copy this content to the Project subdir so we could master them out when installing.
2758
+ // Copy this content to the Project subdir so we can exclude them when installing.
2759
2759
return moduleDirPath. join ( " Project " )
2760
2760
}
2761
2761
return moduleDirPath
@@ -3047,7 +3047,7 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
3047
3047
3048
3048
// Compute strings that will be used at various points when building the map.
3049
3049
let moduleBaseNameSuffix = compilationMode. moduleBaseNameSuffix
3050
- let masterSwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + moduleBaseNameSuffix + " -master "
3050
+ let primarySwiftBaseName = cbc. scope. evaluate ( BuiltinMacros . TARGET_NAME) + moduleBaseNameSuffix + " -primary "
3051
3051
let emitConstSideCarValues = await supportConstSupplementaryMetadata ( cbc, delegate, compilationMode: compilationMode)
3052
3052
3053
3053
func createCommonFileEntry( input: FileToBuild ) -> ( objectFilePath: Path , fileMapEntry: SwiftOutputFileMap . Entry ) {
@@ -3110,25 +3110,25 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
3110
3110
var fileMapEntry = SwiftOutputFileMap . Entry ( )
3111
3111
3112
3112
// The file used by Swift to manage intermodule dependencies.
3113
- let globalSwiftDependenciesFilePath = objectFileDir. join ( masterSwiftBaseName + " .swiftdeps " )
3113
+ let globalSwiftDependenciesFilePath = objectFileDir. join ( primarySwiftBaseName + " .swiftdeps " )
3114
3114
fileMapEntry. swiftDependencies = globalSwiftDependenciesFilePath. str
3115
3115
3116
3116
// The diagnostics file.
3117
- let diagnosticsFilePath = objectFileDir. join ( masterSwiftBaseName + " .dia " )
3117
+ let diagnosticsFilePath = objectFileDir. join ( primarySwiftBaseName + " .dia " )
3118
3118
fileMapEntry. diagnostics = diagnosticsFilePath. str
3119
3119
3120
3120
// The diagnostics file for emit-module jobs.
3121
- let emitModuleDiagnosticsFilePath = objectFileDir. join ( masterSwiftBaseName + " -emit-module.dia " )
3121
+ let emitModuleDiagnosticsFilePath = objectFileDir. join ( primarySwiftBaseName + " -emit-module.dia " )
3122
3122
fileMapEntry. emitModuleDiagnostics = emitModuleDiagnosticsFilePath. str
3123
3123
3124
3124
if await shouldEmitMakeStyleDependencies ( cbc. producer, cbc. scope, delegate: delegate) {
3125
3125
// The dependency file for emit-module jobs.
3126
- let emitModuleDependenciesFilePath = objectFileDir. join ( masterSwiftBaseName + " -emit-module.d " )
3126
+ let emitModuleDependenciesFilePath = objectFileDir. join ( primarySwiftBaseName + " -emit-module.d " )
3127
3127
fileMapEntry. emitModuleDependencies = emitModuleDependenciesFilePath. str
3128
3128
}
3129
3129
3130
3130
// The PCH file path for generatePCH job.
3131
- let bridgingHeaderPCHPath = objectFileDir. join ( masterSwiftBaseName + " -Bridging-header.pch " )
3131
+ let bridgingHeaderPCHPath = objectFileDir. join ( primarySwiftBaseName + " -Bridging-header.pch " )
3132
3132
fileMapEntry. pch = bridgingHeaderPCHPath. str
3133
3133
3134
3134
// Add the global entry to the map.
@@ -3146,35 +3146,35 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
3146
3146
var fileMapEntry = SwiftOutputFileMap . Entry ( )
3147
3147
3148
3148
// The diagnostics file.
3149
- let diagnosticsFilePath = objectFileDir. join ( masterSwiftBaseName + " .dia " )
3149
+ let diagnosticsFilePath = objectFileDir. join ( primarySwiftBaseName + " .dia " )
3150
3150
fileMapEntry. diagnostics = diagnosticsFilePath. str
3151
3151
3152
3152
// The diagnostics file for emit-module jobs.
3153
- let emitModuleDiagnosticsFilePath = objectFileDir. join ( masterSwiftBaseName + " -emit-module.dia " )
3153
+ let emitModuleDiagnosticsFilePath = objectFileDir. join ( primarySwiftBaseName + " -emit-module.dia " )
3154
3154
fileMapEntry. emitModuleDiagnostics = emitModuleDiagnosticsFilePath. str
3155
3155
3156
3156
if await shouldEmitMakeStyleDependencies ( cbc. producer, cbc. scope, delegate: delegate) {
3157
3157
// The dependency file for emit-module jobs.
3158
- let emitModuleDependenciesFilePath = objectFileDir. join ( masterSwiftBaseName + " -emit-module.d " )
3158
+ let emitModuleDependenciesFilePath = objectFileDir. join ( primarySwiftBaseName + " -emit-module.d " )
3159
3159
fileMapEntry. emitModuleDependencies = emitModuleDependenciesFilePath. str
3160
3160
3161
3161
3162
3162
// The dependencies file, used to discover implicit dependencies. This file will be in Makefile format.
3163
- let dependenciesFilePath = objectFileDir. join ( masterSwiftBaseName + " .d " )
3163
+ let dependenciesFilePath = objectFileDir. join ( primarySwiftBaseName + " .d " )
3164
3164
fileMapEntry. dependencies = dependenciesFilePath. str
3165
3165
}
3166
3166
3167
3167
// The file used by Swift to manage intermodule dependencies.
3168
- let swiftDependenciesFilePath = objectFileDir. join ( masterSwiftBaseName + " .swiftdeps " )
3168
+ let swiftDependenciesFilePath = objectFileDir. join ( primarySwiftBaseName + " .swiftdeps " )
3169
3169
fileMapEntry. swiftDependencies = swiftDependenciesFilePath. str
3170
3170
3171
3171
// The requested compile-time values
3172
3172
if emitConstSideCarValues && compilationMode. compileSources {
3173
- fileMapEntry. constValues = objectFileDir. join ( masterSwiftBaseName + " .swiftconstvalues " ) . str
3173
+ fileMapEntry. constValues = objectFileDir. join ( primarySwiftBaseName + " .swiftconstvalues " ) . str
3174
3174
}
3175
3175
3176
3176
// The PCH file path for generatePCH job.
3177
- let bridgingHeaderPCHPath = objectFileDir. join ( masterSwiftBaseName + " -Bridging-header.pch " )
3177
+ let bridgingHeaderPCHPath = objectFileDir. join ( primarySwiftBaseName + " -Bridging-header.pch " )
3178
3178
fileMapEntry. pch = bridgingHeaderPCHPath. str
3179
3179
3180
3180
// Add the global entry to the map.
0 commit comments