Skip to content

Commit 9ac8d20

Browse files
committed
Fix env issue
1 parent 89adc3e commit 9ac8d20

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ let openGraphCompatibilityTestTarget = Target.testTarget(
6060
swiftSettings: sharedSwiftSettings
6161
)
6262

63-
let swiftBinPath = Context.environment["_"] ?? ""
63+
let swiftBinPath = Context.environment["_"] ?? "/usr/bin/swift"
6464
let swiftBinURL = URL(fileURLWithPath: swiftBinPath)
6565
let SDKPath = swiftBinURL.deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().path
66-
let includePath = SDKPath.appending("/usr/lib/swift_static")
66+
let includePath = SDKPath.appending("/usr/lib/swift")
6767

6868
let package = Package(
6969
name: "OpenGraph",

Tests/OpenGraphCompatibilityTests/Attribute/Attribute/PointerOffsetTests.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ struct PointerOffsetTests {
4242
#expect(invalidPointer == UnsafeMutablePointer(bitPattern: stride))
4343
}
4444

45-
#if compiler(>=6.0)
4645
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues/70", id: 70, "Verify fix of #70"))
4746
func ofAndOffset() {
4847
struct Empty {
@@ -79,7 +78,6 @@ struct PointerOffsetTests {
7978
.of(&invalid.third)
8079
}
8180
}
82-
#endif
8381

8482
@Test("Extension API between UnsafePointer/UnsafeMutablePointer and PointerOffset")
8583
func unsafePointerAndUnsafeMutablePointerExtension() {

0 commit comments

Comments
 (0)