Skip to content

Commit 4a0ee22

Browse files
committed
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 neovim#31027
1 parent d2cca60 commit 4a0ee22

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
ifeq ($(OS),Windows_NT)
2+
ifeq '$(findstring ;,$(PATH))' ';'
3+
UNIX_LIKE := FALSE
4+
else
5+
UNIX_LIKE := TRUE
6+
endif
7+
else
8+
UNIX_LIKE := TRUE
9+
endif
10+
11+
ifeq ($(UNIX_LIKE),FALSE)
212
SHELL := powershell.exe
313
.SHELLFLAGS := -NoProfile -NoLogo
414
MKDIR := @$$null = new-item -itemtype directory -force

0 commit comments

Comments
 (0)