fix: properly skip fp16kernels if not enabled and allow building on ios#5866
Closed
chyyran wants to merge 1 commit intolance-format:release/v1.0from
Closed
fix: properly skip fp16kernels if not enabled and allow building on ios#5866chyyran wants to merge 1 commit intolance-format:release/v1.0from
chyyran wants to merge 1 commit intolance-format:release/v1.0from
Conversation
Previously, even if fp16kernels was disabled via no-default-features, the feature check failed.
wjones127
reviewed
Feb 6, 2026
Contributor
wjones127
left a comment
There was a problem hiding this comment.
A similar change was previously suggested in #5747
However, I pointed out we might still want to run build_dist_table_with_flags even if we haven't enabled fp16kernels. We already guard before building the kernels here:
lance/rust/lance-linalg/build.rs
Lines 92 to 97 in 303f58f
What was the build failure you were getting?
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
|
@wjones127 When building the After #5747 the build error seems to be fixed. I can't rebase this on |
This was referenced Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously even if
fp16kernelswas disabled, the check would still fail and cause a build failure when trying to build lance-linalg.The motivation was to enable building on
aarch64-apple-ios. This PR also adds support formtune=apple-a13when building for iOS, which is the earliest supported iOS architecture at time of writing.This is intended for merge to the 1.0 branch of lance. Let me know if its preferable to PR it to main and backport the change after.