Skip to content

Commit

Permalink
Restore Library Evolution support for Xcode 16 (#279)
Browse files Browse the repository at this point in the history
* Update xctest-dynamic-overlay to 1.4.1

* Restore ‘Build for Library Evolution’ target

This partially reverts commit 4b65e03.

*waves* Hi - we’re depending on this.

* Update version of swift-syntax

* Update to build DependenciesMacros for Library Evolution

* Address a syntax error in Xcode 16

“switch covers known cases, but 'AccessorBlockSyntax.Accessors' may have additional unknown values”

* Revert back to `macos-14`

This partially reverts commit 7c5590d.
  • Loading branch information
gemmakbarlow authored Sep 25, 2024
1 parent 0fc0255 commit 7101475
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
run: make test-swift
- name: Build platforms ${{ matrix.config }}
run: CONFIG=${{ matrix.config }} make build-all-platforms
- name: Build for library evolution
run: make build-for-library-evolution

ubuntu:
strategy:
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ build-for-library-evolution:
-Xswiftc -emit-module-interface \
-Xswiftc -enable-library-evolution

swift build \
-c release \
--target DependenciesMacros \
-Xswiftc -emit-module-interface \
-Xswiftc -enable-library-evolution \
-Xswiftc -DRESILIENT_LIBRARIES # Required to build swift-syntax; see https://github.com/swiftlang/swift-syntax/pull/2540

build-for-static-stdlib-docker:
@docker run \
-v "$(PWD):$(PWD)" \
Expand Down
10 changes: 5 additions & 5 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"originHash" : "b70d24a284d4a26856cfef0d2ef69b0e2326a2fa8a91e22c08eba0cad0f59bcd",
"originHash" : "ac879199bc109c96e02f389573ce5b101fa5c8a274b809fc57dba0d4736f5b6f",
"pins" : [
{
"identity" : "combine-schedulers",
Expand Down Expand Up @@ -69,17 +69,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-syntax",
"state" : {
"revision" : "515f79b522918f83483068d99c68daeb5116342d",
"version" : "600.0.0-prerelease-2024-09-04"
"revision" : "cb53fa1bd3219b0b23ded7dfdd3b2baff266fd25",
"version" : "600.0.0"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "bc2a151366f2cd0e347274544933bc2acb00c9fe",
"version" : "1.4.0"
"revision" : "27d767d643fa2cf083d0a73d74fa84cacb53e85c",
"version" : "1.4.1"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public enum DependencyClientMacro: MemberAttributeMacro, MemberMacro {
if accessors.contains(where: { $0.accessorSpecifier.tokenKind == .keyword(.get) }) {
continue
}
@unknown default: return []
}
}

Expand Down

0 comments on commit 7101475

Please sign in to comment.