Skip to content

Commit fb184f5

Browse files
committed
Fix swift build issue for enable-library-evolution
1 parent 3fb0395 commit fb184f5

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.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 RENDERBOX on macOS via SwiftPM
39+
env:
40+
OPENBOX_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+
OPENBOX_LIBRARY_EVOLUTION: 0
3840
run: |
3941
swift test \
4042
-c debug \
@@ -45,6 +47,8 @@ jobs:
4547
.build-test-debug/debug/OPENBOXPackageTests.xctest/Contents/MacOS/OPENBOXPackageTests \
4648
> coverage.txt
4749
- name: Build and run tests in release mode
50+
env:
51+
OPENBOX_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
@@ -51,6 +51,7 @@ let libraryEvolutionCondition = envEnable("OPENBOX_LIBRARY_EVOLUTION")
5151
#endif
5252

5353
if libraryEvolutionCondition {
54+
// NOTE: -enable-library-evolution is not supported on `swift build` yet.
5455
sharedSwiftSettings.append(.unsafeFlags(["-enable-library-evolution"]))
5556
}
5657

0 commit comments

Comments
 (0)