@@ -87,7 +87,7 @@ public struct LLBuildManifestGenerator {
87
87
}
88
88
89
89
/// Generate manifest at the given path.
90
- public func generateManifest( at path: AbsolutePath ) throws {
90
+ public func generateManifest( at path: AbsolutePath , environment : [ String : String ] = Process . env ) throws {
91
91
var targets = Targets ( )
92
92
93
93
// Create commands for all target description in the plan.
@@ -99,7 +99,7 @@ public struct LLBuildManifestGenerator {
99
99
buildByDefault: plan. graph. reachableTargets. contains ( target) ,
100
100
isTest: description. isTestTarget)
101
101
case . clang( let description) :
102
- targets. append ( try createClangCompileTarget ( description) ,
102
+ targets. append ( try createClangCompileTarget ( description, environment : environment ) ,
103
103
buildByDefault: plan. graph. reachableTargets. contains ( target) ,
104
104
isTest: description. isTestTarget)
105
105
}
@@ -215,7 +215,7 @@ public struct LLBuildManifestGenerator {
215
215
}
216
216
217
217
/// Create a llbuild target for a Clang target description.
218
- private func createClangCompileTarget( _ target: ClangTargetBuildDescription ) throws -> Target {
218
+ private func createClangCompileTarget( _ target: ClangTargetBuildDescription , environment : [ String : String ] = Process . env ) throws -> Target {
219
219
220
220
let standards = [
221
221
( target. clangTarget. cxxLanguageStandard, SupportedLanguageExtension . cppExtensions) ,
0 commit comments