Skip to content

Commit 6cfe2de

Browse files
Add swiftpm-xctest-helper rpath on macOS. (#2785)
Add an extra rpath for swiftpm-xctest-helper on macOS: `@executable_path/../../../lib/swift/macosx`. This fixes SR-12600: `swift test --filter`. Co-authored-by: Anders Bertelrud <[email protected]> Co-authored-by: Anders Bertelrud <[email protected]>
1 parent 0947542 commit 6cfe2de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ let package = Package(
167167
.target(
168168
/** Shim tool to find test names on OS X */
169169
name: "swiftpm-xctest-helper",
170-
dependencies: []),
170+
dependencies: [],
171+
linkerSettings: [
172+
.unsafeFlags(["-Xlinker", "-rpath", "-Xlinker", "@executable_path/../../../lib/swift/macosx"], .when(platforms: [.macOS])),
173+
]),
171174

172175
// MARK: Additional Test Dependencies
173176

0 commit comments

Comments
 (0)