Skip to content

Commit d987dc7

Browse files
committed
Disable OPENGRAPH_LIBRARY_EVOLUTION for swift test
1 parent ce03ce3 commit d987dc7

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/compatibility_tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
- name: Swift version
3737
run: swift --version
3838
- name: Run tests against Apple's AttributeGraph on macOS via SwiftPM
39+
env:
40+
OPENGRAPH_LIBRARY_EVOLUTION: 0
3941
run: |
4042
swift test \
4143
--build-path .build-compatibility-test-debug

.github/workflows/macos.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- name: Swift version
3636
run: swift --version
3737
- name: Build and run tests in debug mode with coverage
38+
env:
39+
OPENGRAPH_LIBRARY_EVOLUTION: 0
3840
run: |
3941
swift test \
4042
-c debug \
@@ -45,6 +47,8 @@ jobs:
4547
.build-test-debug/debug/OpenGraphPackageTests.xctest/Contents/MacOS/OpenGraphPackageTests \
4648
> coverage.txt
4749
- name: Build and run tests in release mode
50+
env:
51+
OPENGRAPH_LIBRARY_EVOLUTION: 0
4852
run: |
4953
swift test \
5054
-c release \

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ let libraryEvolutionCondition = envEnable("OPENGRAPH_LIBRARY_EVOLUTION")
118118
#endif
119119

120120
if libraryEvolutionCondition {
121+
// NOTE: -enable-library-evolution is not supported on `swift build` yet.
121122
sharedSwiftSettings.append(.unsafeFlags(["-enable-library-evolution"]))
122123
}
123124

0 commit comments

Comments
 (0)