@@ -45,7 +45,7 @@ extension LLBuildManifestBuilder {
45
45
let moduleNode = Node . file ( target. moduleOutputPath)
46
46
let cmdOutputs = objectNodes + [ moduleNode]
47
47
48
- if target. defaultBuildParameters . driverParameters. useIntegratedSwiftDriver {
48
+ if target. buildParameters . driverParameters. useIntegratedSwiftDriver {
49
49
try self . addSwiftCmdsViaIntegratedDriver (
50
50
target,
51
51
inputs: inputs,
@@ -68,7 +68,7 @@ extension LLBuildManifestBuilder {
68
68
// jobs needed to build this Swift target.
69
69
var commandLine = try target. emitCommandLine ( )
70
70
commandLine. append ( " -driver-use-frontend-path " )
71
- commandLine. append ( target. defaultBuildParameters . toolchain. swiftCompilerPath. pathString)
71
+ commandLine. append ( target. buildParameters . toolchain. swiftCompilerPath. pathString)
72
72
// FIXME: At some point SwiftPM should provide its own executor for
73
73
// running jobs/launching processes during planning
74
74
let resolver = try ArgsResolver ( fileSystem: target. fileSystem)
@@ -132,7 +132,7 @@ extension LLBuildManifestBuilder {
132
132
// common intermediate dependency modules, such dependencies can lead
133
133
// to cycles in the resulting manifest.
134
134
var manifestNodeInputs : [ Node ] = [ ]
135
- if targetDescription. defaultBuildParameters . driverParameters. useExplicitModuleBuild && !isMainModule( job) {
135
+ if targetDescription. buildParameters . driverParameters. useExplicitModuleBuild && !isMainModule( job) {
136
136
manifestNodeInputs = jobInputs
137
137
} else {
138
138
manifestNodeInputs = ( inputs + jobInputs) . uniqued ( )
@@ -284,7 +284,7 @@ extension LLBuildManifestBuilder {
284
284
// jobs needed to build this Swift target.
285
285
var commandLine = try targetDescription. emitCommandLine ( )
286
286
commandLine. append ( " -driver-use-frontend-path " )
287
- commandLine. append ( targetDescription. defaultBuildParameters . toolchain. swiftCompilerPath. pathString)
287
+ commandLine. append ( targetDescription. buildParameters . toolchain. swiftCompilerPath. pathString)
288
288
commandLine. append ( " -experimental-explicit-module-build " )
289
289
let resolver = try ArgsResolver ( fileSystem: self . fileSystem)
290
290
let executor = SPMSwiftDriverExecutor (
@@ -382,7 +382,7 @@ extension LLBuildManifestBuilder {
382
382
name: cmdName,
383
383
inputs: inputs + [ Node . file ( target. sourcesFileListPath) ] ,
384
384
outputs: cmdOutputs,
385
- executable: target. defaultBuildParameters . toolchain. swiftCompilerPath,
385
+ executable: target. buildParameters . toolchain. swiftCompilerPath,
386
386
moduleName: target. target. c99name,
387
387
moduleAliases: target. target. moduleAliases,
388
388
moduleOutputPath: target. moduleOutputPath,
@@ -393,7 +393,7 @@ extension LLBuildManifestBuilder {
393
393
sources: target. sources,
394
394
fileList: target. sourcesFileListPath,
395
395
isLibrary: isLibrary,
396
- wholeModuleOptimization: target. defaultBuildParameters . configuration == . release,
396
+ wholeModuleOptimization: target. buildParameters . configuration == . release,
397
397
outputFileMapPath: try target. writeOutputFileMap ( ) // FIXME: Eliminate side effect.
398
398
)
399
399
}
@@ -403,7 +403,7 @@ extension LLBuildManifestBuilder {
403
403
) throws -> [ Node ] {
404
404
var inputs = target. sources. map ( Node . file)
405
405
406
- let swiftVersionFilePath = addSwiftGetVersionCommand ( buildParameters: target. defaultBuildParameters )
406
+ let swiftVersionFilePath = addSwiftGetVersionCommand ( buildParameters: target. buildParameters )
407
407
inputs. append ( . file( swiftVersionFilePath) )
408
408
409
409
// Add resources node as the input to the target. This isn't great because we
@@ -447,7 +447,7 @@ extension LLBuildManifestBuilder {
447
447
}
448
448
}
449
449
450
- for dependency in target. target. dependencies ( satisfying: target. defaultBuildParameters . buildEnvironment) {
450
+ for dependency in target. target. dependencies ( satisfying: target. buildParameters . buildEnvironment) {
451
451
switch dependency {
452
452
case . target( let target, _) :
453
453
try addStaticTargetInputs ( target)
@@ -474,7 +474,7 @@ extension LLBuildManifestBuilder {
474
474
}
475
475
476
476
for binaryPath in target. libraryBinaryPaths {
477
- let path = target. defaultBuildParameters . destinationPath ( forBinaryAt: binaryPath)
477
+ let path = target. buildParameters . destinationPath ( forBinaryAt: binaryPath)
478
478
if self . fileSystem. isDirectory ( binaryPath) {
479
479
inputs. append ( directory: path)
480
480
} else {
@@ -504,7 +504,7 @@ extension LLBuildManifestBuilder {
504
504
inputs: cmdOutputs,
505
505
outputs: [ targetOutput]
506
506
)
507
- if self . plan. graph. isInRootPackages ( target. target, satisfying: target. defaultBuildParameters . buildEnvironment) {
507
+ if self . plan. graph. isInRootPackages ( target. target, satisfying: target. buildParameters . buildEnvironment) {
508
508
if !target. isTestTarget {
509
509
self . addNode ( targetOutput, toTarget: . main)
510
510
}
@@ -514,13 +514,13 @@ extension LLBuildManifestBuilder {
514
514
515
515
private func addModuleWrapCmd( _ target: SwiftTargetBuildDescription ) throws {
516
516
// Add commands to perform the module wrapping Swift modules when debugging strategy is `modulewrap`.
517
- guard target. defaultBuildParameters . debuggingStrategy == . modulewrap else { return }
517
+ guard target. buildParameters . debuggingStrategy == . modulewrap else { return }
518
518
var moduleWrapArgs = [
519
- target. defaultBuildParameters . toolchain. swiftCompilerPath. pathString,
519
+ target. buildParameters . toolchain. swiftCompilerPath. pathString,
520
520
" -modulewrap " , target. moduleOutputPath. pathString,
521
521
" -o " , target. wrappedModuleOutputPath. pathString,
522
522
]
523
- moduleWrapArgs += try target. defaultBuildParameters . tripleArgs ( for: target. target)
523
+ moduleWrapArgs += try target. buildParameters . tripleArgs ( for: target. target)
524
524
self . manifest. addShellCmd (
525
525
name: target. wrappedModuleOutputPath. pathString,
526
526
description: " Wrapping AST for \( target. target. name) for debugging " ,
@@ -608,6 +608,6 @@ extension SwiftTargetBuildDescription {
608
608
}
609
609
610
610
public func getLLBuildTargetName( ) -> String {
611
- self . target. getLLBuildTargetName ( buildParameters: self . defaultBuildParameters )
611
+ self . target. getLLBuildTargetName ( buildParameters: self . buildParameters )
612
612
}
613
613
}
0 commit comments