Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only compile FileSystem on some platforms #2636

Merged
merged 1 commit into from Feb 1, 2024
Merged

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Feb 1, 2024

Motivation:

SwiftNIO doesn't compile for visionOS because NIOFileSystem depends on Swift System which doesn't yet support visionOS.

As NIOFileSystem isn't yet stable API we can define it out on some platforms.

Modifications:

  • Only define NIOFileSystem on macOS, iOS, tvOS, watchOS, Linux and Android.
  • Only include Swift System on the same platforms

Result:

SwiftNIO compiles on visionOS, albeit with an empty NIOFileSystem.

Motivation:

SwiftNIO doesn't compile for visionOS because NIOFileSystem depends on
Swift System which doesn't yet support visionOS.

As NIOFileSystem isn't yet stable API we can define it out on some
platforms.

Modifications:

- Only define NIOFileSystem on macOS, iOS, tvOS, watchOS, Linux and
  Android.
- Only include Swift System on the same platforms

Result:

SwiftNIO compiles on visionOS, albeit without NIOFileSystem.
@glbrntt glbrntt added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Feb 1, 2024
@glbrntt glbrntt requested a review from Lukasa February 1, 2024 09:03
@FranzBusch FranzBusch merged commit 53965cc into apple:main Feb 1, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants