Skip to content

Commit 627175f

Browse files
authored
Fix a build issue with swift-inspect
Update the version of swift-argument-parser used by swift-inspect to be compatible with the package description version. Add compiler flags for a LLVM bug workaround.
1 parent eebc983 commit 627175f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/swift-inspect/Package.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let package = Package(
99
.library(name: "SwiftInspectClient", type: .dynamic, targets: ["SwiftInspectClient"]),
1010
],
1111
dependencies: [
12-
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.0.1"),
12+
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.2"),
1313
],
1414
targets: [
1515
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -25,6 +25,10 @@ let package = Package(
2525
swiftSettings: [
2626
.unsafeFlags([
2727
"-parse-as-library",
28+
"-Xcc",
29+
"-Xclang",
30+
"-Xcc",
31+
"-fno-split-cold-code", // Workaround https://github.com/llvm/llvm-project/issues/40056
2832
]),
2933
]),
3034
.target(

0 commit comments

Comments
 (0)