Closed gwarf closed 1 year ago
Could you try the branch make_jsregexp_simplify
?
Just did, it fails differently:
NOTE: jsregexp is optional, so not a big deal if it fails to build
git submodule init
git submodule update
make INCLUDE_DIR=-I/Users/baptiste/.local/share/nvim/lazy/LuaSnip/deps/lua51_include/ LDLIBS="-bundle -undefined dynamic_lookup -all_load" -C deps/jsregexp
make[1]: Entering directory '/Users/baptiste/.local/share/nvim/lazy/LuaSnip/deps/jsregexp'
gcc -shared jsregexp.o cutils.o libregexp.o libunicode.o -bundle -undefined dynamic_lookup -all_load -o jsregexp.so
clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
make[1]: *** [Makefile:17: jsregexp.so] Error 1
make: *** [Makefile:40: jsregexp] Error 2
make[1]: Leaving directory '/Users/baptiste/.local/share/nvim/lazy/LuaSnip/deps/jsregexp'
AFAIU, the mentioned gcc and clang are the one provided by the macos system.
Ah, okay I think the issue is that both -shared and -bundle are passed. I updated the branch, could you try again?
Looks good, thanks!
Nice!
Ookay, the fix is on master, closing this
I confirm building is working OK with master, thanks a lot for having fixed this that quickly, should have reported this before ;)
Oh for sure :D TBH I'm in luck that you reported your issue today, I was looking for testers of that patch, and getting people to do something after their issue is resolved seems hard :P
Hello, I'm using nix-darwin on macos, I run a LazyVim-based neovim setup, and jsrexexp installation is failing.
From what I saw when looking at the makefile, this quite specific configuration is not taken into account.