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

Build and run the swift wrapper on Windows and Linux #2

Open
2 tasks
iboB opened this issue Oct 23, 2024 · 2 comments
Open
2 tasks

Build and run the swift wrapper on Windows and Linux #2

iboB opened this issue Oct 23, 2024 · 2 comments
Assignees

Comments

@iboB
Copy link
Member

iboB commented Oct 23, 2024

  • Windows
  • Linux

document the required steps in the build docs

@iboB iboB self-assigned this Oct 23, 2024
@iboB iboB changed the title Test the swift wrapper on Windows and Linux Build and run the swift wrapper on Windows and Linux Oct 23, 2024
iboB referenced this issue in alpaca-core/ac-local Oct 26, 2024
@iboB
Copy link
Member Author

iboB commented Oct 26, 2024

swift can only be compiled with clang: https://www.swift.org/documentation/cxx-interop/status/

@iboB
Copy link
Member Author

iboB commented Oct 28, 2024

This works, but finding the bridging header is somewhat clunky.

The only way to do this now is to query swiftc -print-target-info and then parse the output to find runtimeResourcePath, then remove /lib/swift from the end.

Kinda hacky.

So, leaving this open for now. If there's desire, we can go the hacky way. If there's no push to do this, we'll wait for a CMake or swiftc update to allow us a less hacky solution

@iboB iboB transferred this issue from alpaca-core/ac-local Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant