Skip to content

Commit d640dc2

Browse files
authored
Format args to module-aliases as a list of key/value strings before passing to llbuild
Resolves rdar://91060527
1 parent 745ce76 commit d640dc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/LLBuildManifest/Tools.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ public struct SwiftCompilerTool: ToolProtocol {
267267
stream["executable"] = executable
268268
stream["module-name"] = moduleName
269269
if let moduleAliases = moduleAliases {
270-
stream["module-alias"] = moduleAliases
270+
// Format the key and value to pass to -module-alias flag
271+
let formatted = moduleAliases.map {$0.key + "=" + $0.value}
272+
stream["module-aliases"] = formatted
271273
}
272274
stream["module-output-path"] = moduleOutputPath
273275
stream["import-paths"] = [importPath]

0 commit comments

Comments
 (0)