Skip to content

Commit c0d8638

Browse files
authored
generator: Don't build other llvm binaries when building lld from source (#83)
#51 changed the recipe which builds `lld` from source so it would only build `lld` and not the rest of the `llvm` tools. This change was lost in the transition to `AsyncProcess` in #77. This change reduces a scratch build from about 19m30s to 16m on my machine.
1 parent fab0e39 commit c0d8638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftSDKGenerator/Queries/CMakeBuildQuery.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ struct CMakeBuildQuery {
3232
)
3333

3434
let buildDirectory = self.sourcesDirectory.appending("build")
35-
try await Shell.run(#"ninja -C "\#(buildDirectory)""#, logStdout: true)
35+
try await Shell.run(#"ninja -C "\#(buildDirectory)" "\#(FilePath(".").appending(outputBinarySubpath))""#, logStdout: true)
3636

37-
return self.outputBinarySubpath.reduce(into: buildDirectory) { $0.append($1) }
37+
return buildDirectory.appending(outputBinarySubpath)
3838
}
3939
}

0 commit comments

Comments
 (0)