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

Add Linux compatibility (different approach) #2

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

ole
Copy link
Owner

@ole ole commented Dec 28, 2023

Complementing @libewa's work in #1, this is my alternative approach to adding Linux compatibility (plus some other small formatting and documentation changes). We should merge either #1 or this one or possibly a combination of both.

Changes to the CMake config:

- Relax minimum CMake version requirement.
- The Swift compiler is not configured by setting CMAKE_Swift_COMPILER. We no longer look consider the TOOLCHAINS variable because it's macOS-specific as far as I know.
- You must specify the full path to swiftc in CMAKE_Swift_COMPILER, as opposed to toolchain's bundle identifier in the TOOLCHAINS variable. Example for macOS: `cmake -DCMAKE_Swift_COMPILER=/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-12-07-a.xctoolchain/usr/bin/swiftc`
- Verify that the Swift compiler supports Embedded Swift and abort if it doesn't.
@ole ole mentioned this pull request Dec 28, 2023
5 tasks
@ole ole marked this pull request as draft December 28, 2023 19:14
@ole
Copy link
Owner Author

ole commented Dec 28, 2023

Discussion: #1 (comment)

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.

None yet

1 participant