@@ -146,7 +146,7 @@ let compatibilityTestCondition = envBoolValue("COMPATIBILITY_TEST", default: fal
146146
147147let useLocalDeps = envBoolValue ( " USE_LOCAL_DEPS " )
148148let 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