@@ -58,17 +58,17 @@ func makeFile() throws {
58
58
/// Extract the info we need from llvm-config
59
59
60
60
print ( " Found llvm-config at \( llvmConfig) ... " )
61
- print ( " Running llvm-config --libs all " )
61
+ print ( " Running llvm-config --libs all... " )
62
62
let ldFlags = run ( llvmConfig, args: [ " --libs " , " all " ] ) !
63
63
. replacing ( charactersIn: . newlines, with: " " )
64
- print ( " Running llvm-config --version " )
64
+ print ( " Running llvm-config --version... " )
65
65
let version = run ( llvmConfig, args: [ " --version " ] ) !
66
66
. replacing ( charactersIn: . newlines, with: " " )
67
67
68
68
// SwiftPM has a whitelisted set of cflags that it understands, and
69
69
// unfortunately that includes almost everything but the include dir.
70
70
71
- print ( " Running llvm-config --cflags " )
71
+ print ( " Running llvm-config --cflags... " )
72
72
let cFlags = run ( llvmConfig, args: [ " --cflags " ] ) !
73
73
. replacing ( charactersIn: . newlines, with: " " )
74
74
. components ( separatedBy: " " )
@@ -86,7 +86,12 @@ func makeFile() throws {
86
86
" Cflags: \( cFlags) " ,
87
87
] . joined ( separator: " \n " )
88
88
89
+ print ( " Writing pkg-config file to \( cllvmPath. path) ... " )
90
+
89
91
try s. write ( toFile: cllvmPath. path, atomically: true , encoding: . utf8)
92
+
93
+ print ( " \n Successfully wrote pkg-config file! " )
94
+ print ( " Make sure to re-run this script when you update LLVM. " )
90
95
}
91
96
92
97
do {
0 commit comments