-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fails to load on Apple silicon CPUs because libfzf.so is built only for Intel CPUs #119
Comments
see #79 currently the way the makefile is setup it should be enough to just do i dont have mac, so i cant test any of this and provide a fix. Like back over a year ago i am happy to merge one :) i am just the wrong person to create one, as i have not the reasources to even test a single solution (m1 or intel based) ... so yeah please open a PR if you have a working solution |
I don't think In my fork I inserted... I'm not sure it's the most elegant solution, especially if |
https://wiki.gentoo.org/wiki/GCC_optimization#-march or https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/AArch64-Options.html#index-march The wiki says I don't have a arm device to test, but the following works for me on a AMD64 CPU: -- lazy.nvim config
{
'nvim-telescope/telescope-fzf-native.nvim',
build = 'CFLAGS=-march=native make',
lazy = true
},
|
works on my Apple silicon Mac! |
Workaround: run nvim under Rosetta (on the fly Intel to Apple silicon binary code translator). E.g., use the
arch -x86_64 nvim ...
command to start nvim.Fix: in
Makefile
, add CFLAGS to build libfzf.so for the CPU architecture on whichmake
is running; as in my fork's Makefile.The text was updated successfully, but these errors were encountered: