Skip to content

Fix build errors in ExitCondition operators on platforms without exit tests. #635

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

Merged

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Aug 21, 2024

On platforms without exit tests, ExitCondition is marked unavailable. On those platforms, the new operators on ExitCondition call each other and the compiler complains because they're calling unavailable symbols. Silence the compiler.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…it tests.

On platforms without exit tests, `ExitCondition` is marked unavailable. On those
platforms, the new operators on `ExitCondition` call each other and the compiler
complains because they're calling unavailable symbols. Silence the compiler.
@grynspan grynspan added bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support embedded-swift 📟 Embedded Swift issues wasi/wasm 🧭 WebAssembly support swift-6.1 exit-tests ☠️ Work related to exit tests android 🤖 Android support labels Aug 21, 2024
@grynspan grynspan self-assigned this Aug 21, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@compnerd reviewed offline.

@grynspan grynspan merged commit 888caad into main-next Aug 22, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/fix-exit-conditions-operators-unavailable branch August 22, 2024 13:27
@grynspan grynspan added this to the Swift 6.1 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android 🤖 Android support bug 🪲 Something isn't working darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support embedded-swift 📟 Embedded Swift issues exit-tests ☠️ Work related to exit tests wasi/wasm 🧭 WebAssembly support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant