mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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
This commit is contained in:
10
Makefile
10
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
|
||||
|
Reference in New Issue
Block a user