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

Prepare QS to include Swift #3023

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

n8henrie
Copy link
Member

  • macos-12 runner is deprecated
  • Remove complex macros, which break compilation with Swift
  • Remove complex macros, which are incompatible with Swift
  • Add missing imports
  • Add blank swift file
  • Use Swift 6.0
  • Fix minimum version message and https URL
  • Remove outdated version target
  • Add bare minimum to run swift from objc
  • Swift 6.0 not avail in GHA runners at this point (xcode 15), stick to swift 5 for now
  • Remove dummy Swift code

Follow `macos-latest`; if issues come up, can always temporarily pin to
the latest working version
https://developer.apple.com/documentation/swift/using-imported-c-macros-in-swift#Use-Functions-and-Generics-Instead-of-Complex-Macros

> C macros that are more complex than simple constant definitions have
> no counterpart in Swift. You use complex macros in C and Objective-C
> to avoid type-checking constraints or to avoid retyping large amounts
> of boilerplate code. However, macros can make debugging and refactoring
> difficult. In Swift, you can use functions and generics to achieve the
> same results without any compromises.
@n8henrie
Copy link
Member Author

Probably should squash when / if these are merged. @pjrobertson looking forward to your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant