nvim-telescope / telescope-fzf-native.nvim

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

feat: include environment CFLAGS for make #97

Closed adrian5 closed 1 year ago

adrian5 commented 1 year ago

This allows the user to pass their own flags. I wanted to pass -march=native -mtune=native (the fzf binary runs locally by design, so why not), but the Makefile overrides CFLAGS.

With the change, one can easily use e.g. this in nvim:

build = "CFLAGS='-flag=foo -flag=bar' make"

With cmake (…) -DCMAKE_C_FLAGS='-flag=foo -flag=bar' -DCMAKE_BUILD_TYPE=Release (…) should already work as-is.

Conni2461 commented 1 year ago

thanks :)