From 4a0ee22e77d169191e7163d1340b835145f4dac9 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sat, 22 Feb 2025 16:46:31 +0100 Subject: [PATCH] build: make makefile work on msys Relying on $(OS) doesn't work as it's too naive, so we check if $PATH contains a colon instead. Closes https://github.com/neovim/neovim/issues/31027 --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 596eafed3c..29b2644bb8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,14 @@ ifeq ($(OS),Windows_NT) + ifeq '$(findstring ;,$(PATH))' ';' + UNIX_LIKE := FALSE + else + UNIX_LIKE := TRUE + endif +else + UNIX_LIKE := TRUE +endif + +ifeq ($(UNIX_LIKE),FALSE) SHELL := powershell.exe .SHELLFLAGS := -NoProfile -NoLogo MKDIR := @$$null = new-item -itemtype directory -force