Skip to content

Commit a8a3dd8

Browse files
committed
Set output path for bc files
- Updates spm to pass the object file path as the output path for bitcode files for use when building with lto. A more ideal solution may be to use a different path for bitcode files, however using the `.o` extension is also a common pattern and requires a significantly less invasive diff.
1 parent 3f4af6a commit a8a3dd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ public final class SwiftTargetBuildDescription {
759759

760760
content +=
761761
#"""
762+
"llvm-bc": "\#(object._nativePathString(escaped: true))",
762763
"object": "\#(object._nativePathString(escaped: true))",
763764
"swiftmodule": "\#(partialModulePath._nativePathString(escaped: true))",
764765
"swift-dependencies": "\#(swiftDepsPath._nativePathString(escaped: true))"

0 commit comments

Comments
 (0)