nvim-telescope / telescope-fzf-native.nvim

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

Build failed on msys2 windows #126

Open cgwkymt opened 3 months ago

cgwkymt commented 3 months ago

I found the build error during the installation of telescope-fzf-native on MSYS2 UCRT Windows.

Nvim version

NVIM v0.9.5 Build type: Release LuaJIT 2.1.1710088188

This issue is the same as #101, but I would like to introduce the different workaround.

--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@ CFLAGS += -Wall -Werror -fpic -std=gnu99
 ifeq ($(OS),Windows_NT)
     CC = gcc
     TARGET := libfzf.dll
-ifeq (,$(findstring MSYS,$(MSYSTEM)))
-   # On Windows, but NOT msys
+ifeq (,$(findstring $(MSYSTEM),MSYS UCRT64 CLANG64 CLANGARM64 CLANG32 MINGW64 MINGW32))
+   # On Windows, but NOT msys/msys2
     MKD = cmd /C mkdir
     RM = cmd /C rmdir /Q /S
 else

The environment variable MSYSTEM can be set to one of the followings:

The build is successful other than CLANGARM64. Although I couldn’t verify it in the CLANGARM64 environment, I believe this patch is fine.

Thank you,

cgwkymt commented 3 months ago

I encountered this issue during the installation of lazy.vim. lazy.vim just perfoms make without cmake.