We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdb992 commit 4098854Copy full SHA for 4098854
utils/make-pkgconfig.swift
@@ -3,6 +3,9 @@ import Foundation
3
4
#if os(Linux)
5
typealias Process = Task
6
+ let libCPP = "-lstdc++"
7
+#elseif os(macOS)
8
+ let libCPP = "-lc++"
9
#endif
10
11
/// Runs the specified program at the provided path.
@@ -93,7 +96,7 @@ func makeFile() throws {
93
96
"Name: cllvm",
94
97
"Description: The llvm library",
95
98
"Version: \(version)",
- "Libs: \(ldFlags) -lstdc++",
99
+ "Libs: \(ldFlags) \(libCPP)",
100
"Requires.private:",
101
"Cflags: \(cFlags)",
102
].joined(separator: "\n")
0 commit comments