mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +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 ($(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
|
SHELL := powershell.exe
|
||||||
.SHELLFLAGS := -NoProfile -NoLogo
|
.SHELLFLAGS := -NoProfile -NoLogo
|
||||||
MKDIR := @$$null = new-item -itemtype directory -force
|
MKDIR := @$$null = new-item -itemtype directory -force
|
||||||
|
Reference in New Issue
Block a user