Skip to content

Commit 5c31442

Browse files
committed
Fix OAG product issue
1 parent 617bf9c commit 5c31442

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

Package.resolved

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ let compatibilityTestCondition = envBoolValue("COMPATIBILITY_TEST", default: fal
146146

147147
let useLocalDeps = envBoolValue("USE_LOCAL_DEPS")
148148
let computeCondition = envBoolValue("OPENATTRIBUTESHIMS_COMPUTE", default: false)
149-
let attributeGraphCondition = envBoolValue("OPENATTRIBUTESHIMS_ATTRIBUTEGRAPH", default: buildForDarwinPlatform && !isSPIBuild)
149+
let attributeGraphCondition = envBoolValue("OPENATTRIBUTESHIMS_ATTRIBUTEGRAPH", default: false)
150150

151151
// MARK: - Shared Settings
152152

@@ -453,14 +453,14 @@ if computeCondition {
453453
openAttributeGraphTarget,
454454
openAttributeGraphCxxTarget,
455455
])
456-
package.products.append(
457-
.library(name: "OpenAttributeGraph", type: .dynamic, targets: [openAttributeGraphTarget.name, openAttributeGraphCxxTarget.name])
458-
)
459456
}
460457
openAttributeGraphShimsTarget.dependencies.append(.target(name: openAttributeGraphTarget.name))
461458

462459
if buildForDarwinPlatform {
463460
package.targets.append(openAttributeGraphCompatibilityTestsTarget)
461+
package.dependencies.append(
462+
.package(url: "https://github.com/apple/swift-numerics", from: "1.1.1")
463+
)
464464
}
465465

466466
if compatibilityTestCondition {
@@ -473,8 +473,9 @@ if computeCondition {
473473
openAttributeGraphShimsTestsTarget,
474474
]
475475
}
476-
package.dependencies.append(
477-
.package(url: "https://github.com/apple/swift-numerics", from: "1.1.1")
476+
477+
package.products.append(
478+
.library(name: "OpenAttributeGraph", type: .dynamic, targets: [openAttributeGraphTarget.name, openAttributeGraphCxxTarget.name])
478479
)
479480
package.platforms = [.iOS(.v13), .macOS(.v10_15), .macCatalyst(.v13), .tvOS(.v13), .watchOS(.v5)]
480481
}

0 commit comments

Comments
 (0)