nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.4k stars 46 forks source link

add zigcc-based cmake toolchains and presets for cross-compilation #106

Open cnt0 opened 1 year ago

cnt0 commented 1 year ago

saw in https://github.com/nvim-telescope/telescope-fzf-native.nvim/pull/93 that people are interested in this topic so I decided to add it.

It can be used like this:

$ cmake --workflow --preset x86_64-windows-gnu

zig should be in $PATH. At least, cross-compiled libfzf.dll passes make ntest checks.

To compile unit tests, add -DENABLE_TESTING cmake option. In this case, it's assumed that examiner is cloned into examiner subdirectory. Also, you might want to check this PR: https://github.com/Conni2461/examiner/pull/1