@@ -212,7 +212,7 @@ if libraryEvolutionCondition {
212212 // Either set OPENATTRIBUTEGRAPH_LIBRARY_EVOLUTION=0 or add `-Xswiftc -no-verify-emitted-module-interface` after `swift build`
213213 sharedSwiftSettings. append ( . unsafeFlags( [ " -enable-library-evolution " , " -no-verify-emitted-module-interface " ] ) )
214214}
215- if !compatibilityTestCondition {
215+ if !( compatibilityTestCondition && buildForDarwinPlatform ) {
216216 sharedCSettings. append ( . define( " OPENATTRIBUTEGRAPH " ) )
217217 sharedCxxSettings. append ( . define( " OPENATTRIBUTEGRAPH " ) )
218218 sharedSwiftSettings. append ( . define( " OPENATTRIBUTEGRAPH " ) )
@@ -358,7 +358,7 @@ let openAttributeGraphCompatibilityTestsTarget = Target.testTarget(
358358 name: " OpenAttributeGraphCompatibilityTests " ,
359359 dependencies: [
360360 . product( name: " Numerics " , package : " swift-numerics " ) ,
361- ] + ( compatibilityTestCondition ? [ ] : [ . target ( name : openAttributeGraphTarget . name ) ] ) ,
361+ ] ,
362362 exclude: [ " README.md " ] ,
363363 cSettings: sharedCSettings,
364364 cxxSettings: sharedCxxSettings,
@@ -470,6 +470,9 @@ if computeCondition {
470470 setupDPFDependency ( )
471471 openAttributeGraphCompatibilityTestsTarget. addAGSettings ( )
472472 } else {
473+ openAttributeGraphCompatibilityTestsTarget. dependencies. append (
474+ . target( name: openAttributeGraphTarget. name)
475+ )
473476 package . targets += [
474477 utilitiesTestsTarget,
475478 openAttributeGraphCxxTestsTarget,
0 commit comments