Skip to content

Commit 979dabc

Browse files
committed
Build: use target properties to define the target
Use target specific build parameters rather than the global ones to define the build target. This will simplify building multiple variants of the target.
1 parent 4d63d66 commit 979dabc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Build/LLBuildManifestBuilder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,18 +619,18 @@ extension LLBuildManifestBuilder {
619619
name: cmdName,
620620
inputs: inputs + [Node.file(target.sourcesFileListPath)],
621621
outputs: cmdOutputs,
622-
executable: self.buildParameters.toolchain.swiftCompilerPath,
622+
executable: target.buildParameters.toolchain.swiftCompilerPath,
623623
moduleName: target.target.c99name,
624624
moduleAliases: target.target.moduleAliases,
625625
moduleOutputPath: target.moduleOutputPath,
626-
importPath: self.buildParameters.buildPath,
626+
importPath: target.buildParameters.buildPath,
627627
tempsPath: target.tempsPath,
628628
objects: try target.objects,
629629
otherArguments: try target.compileArguments(),
630630
sources: target.sources,
631631
fileList: target.sourcesFileListPath,
632632
isLibrary: isLibrary,
633-
wholeModuleOptimization: self.buildParameters.configuration == .release,
633+
wholeModuleOptimization: target.buildParameters.configuration == .release,
634634
outputFileMapPath: try target.writeOutputFileMap() // FIXME: Eliminate side effect.
635635
)
636636
}

0 commit comments

Comments
 (0)