Skip to content

Commit 0d85f09

Browse files
committed
Use shell tool for linking
1 parent 57065b2 commit 0d85f09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Build/Command.compile(ClangModule).swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ extension Command {
108108

109109
let productPath = Path.join(prefix, module.type == .Library ? "lib\(module.c99name).so" : module.c99name)
110110
args += ["-o", productPath]
111-
112-
let clang = ClangTool(desc: "Linking \(module.name)",
111+
112+
let shell = ShellTool(description: "Linking \(module.name)",
113113
inputs: dependencies + compileCommands.map{$0.node} + [mkdir.node],
114114
outputs: [productPath, module.targetName],
115-
args: [CC] + args,
116-
deps: nil)
117-
let command = Command(node: module.targetName, tool: clang)
115+
args: [CC] + args)
116+
117+
let command = Command(node: module.targetName, tool: shell)
118118

119119
return (compileCommands + [command], mkdir)
120120
}

0 commit comments

Comments
 (0)