Skip to content

Commit 6bba32d

Browse files
committed
Fix Linux build issue
1 parent fc210e2 commit 6bba32d

File tree

7 files changed

+5
-20
lines changed

7 files changed

+5
-20
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ let includePath = SDKPath.appending("/usr/lib/swift")
2929

3030
var sharedCSettings: [CSetting] = [
3131
.unsafeFlags(["-I", includePath], .when(platforms: .nonDarwinPlatforms)),
32-
.define("__COREFOUNDATION_FORSWIFTFOUNDATIONONLY__", to: "1", .when(platforms: .nonDarwinPlatforms)),
3332
]
3433

3534
var sharedSwiftSettings: [SwiftSetting] = [
@@ -164,7 +163,9 @@ let package = Package(
164163
// The SwiftPM support for such usage is still in progress.
165164
.target(
166165
name: "OpenGraph_SPI",
167-
cSettings: sharedCSettings
166+
cSettings: sharedCSettings + [
167+
.define("__COREFOUNDATION_FORSWIFTFOUNDATIONONLY__", to: "1", .when(platforms: .nonDarwinPlatforms)),
168+
]
168169
),
169170
.target(
170171
name: "OpenGraph",

Sources/OpenGraph_SPI/Runtime/OGTupleType.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define OGTupleType_h
1010

1111
#include "OGBase.h"
12-
#include "OGSwiftMetadata.h"
1312
#include "OGTypeID.h"
1413

1514
typedef const OGSwiftMetadata *OGTupleType OG_SWIFT_STRUCT;

Sources/OpenGraph_SPI/Runtime/OGTypeID.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#define OGTypeID_h
1010

1111
#include "OGBase.h"
12-
#include "OGSwiftMetadata.h"
1312

1413
OG_ASSUME_NONNULL_BEGIN
1514

Sources/OpenGraph_SPI/include/OGSwiftMetadata.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

Tests/OpenGraphCompatibilityTests/Runtime/MetadataTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct MetadataTests {
4848
#expect(Metadata(type(of: Int.self)).kind == .metatype)
4949
}
5050

51-
#if OPENGRAPH_RELEASE_2024
51+
#if OPENGRAPH_SUPPORT_2024_API
5252
@Test(.enabled(if: swiftToolchainSupported))
5353
func descriptor() {
5454
let t1 = Metadata(T1.self).descriptor

Tests/OpenGraphCompatibilityTests/Runtime/TypeKindTests.swift

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)