Skip to content

Conversation

@nevyn
Copy link

@nevyn nevyn commented Nov 20, 2025

Some of the code was using Apple specifics. Removing them makes this library work fine on Linux.

This method is in Foundation, not in stdlib, so needs to be explicitly imported to be able to build on Linux.
they're apple specific extensions. Use glibc instead.
@eugenebokhan
Copy link
Contributor

@nevyn Thank you for the PR. Could you please make sure the CI checks pass, maybe add linux check alongside the Mac one?

@nevyn
Copy link
Author

nevyn commented Nov 25, 2025

@eugenebokhan The code builds and tests successfully locally on my Mac. The build errors look like CI issue, perhaps bumping the Swift version will help?

There is no #if os(linux) in Swift, but perhaps it's the Glibc import that messes things up. I've conditionalized it, but I can't trigger CI from here.

I was able to build this before because Swift 6.1 would just pick up kvSIMD from higher up in the dependency chain, which was wrong. In Swift 6.2, we need to explicitly depend on kvSIMD to have a chance to build.
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.

2 participants