Skip to content

Build failed on msys2 windows #126

@cgwkymt

Description

@cgwkymt

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:

  • MSYS, UCRT64, CLANG64, CLANGARM64, CLANG32, MINGW64, MINGW32

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions