Skip to content

Commit e5ee180

Browse files
committed
Added more logging
1 parent e400a2e commit e5ee180

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

utils/make-pkgconfig.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ func makeFile() throws {
5858
/// Extract the info we need from llvm-config
5959

6060
print("Found llvm-config at \(llvmConfig)...")
61-
print("Running llvm-config --libs all")
61+
print("Running llvm-config --libs all...")
6262
let ldFlags = run(llvmConfig, args: ["--libs", "all"])!
6363
.replacing(charactersIn: .newlines, with: "")
64-
print("Running llvm-config --version")
64+
print("Running llvm-config --version...")
6565
let version = run(llvmConfig, args: ["--version"])!
6666
.replacing(charactersIn: .newlines, with: "")
6767

6868
// SwiftPM has a whitelisted set of cflags that it understands, and
6969
// unfortunately that includes almost everything but the include dir.
7070

71-
print("Running llvm-config --cflags")
71+
print("Running llvm-config --cflags...")
7272
let cFlags = run(llvmConfig, args: ["--cflags"])!
7373
.replacing(charactersIn: .newlines, with: "")
7474
.components(separatedBy: " ")
@@ -86,7 +86,12 @@ func makeFile() throws {
8686
"Cflags: \(cFlags)",
8787
].joined(separator: "\n")
8888

89+
print("Writing pkg-config file to \(cllvmPath.path)...")
90+
8991
try s.write(toFile: cllvmPath.path, atomically: true, encoding: .utf8)
92+
93+
print("\nSuccessfully wrote pkg-config file!")
94+
print("Make sure to re-run this script when you update LLVM.")
9095
}
9196

9297
do {

0 commit comments

Comments
 (0)