Просмотр исходного кода

Add msys2 platform detection

This makes a lot of Erlang.mk work on Windows under the msys2
environment. The msys2 environment is damn close to native,
so it will most likely be good enough for a lot of folks.
Loïc Hoguin 9 лет назад
Родитель
Сommit
bfa6cf25fc
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      core/core.mk

+ 2 - 1
core/core.mk

@@ -45,7 +45,6 @@ export ERLANG_MK_TMP
 ERL = erl +A0 -noinput -boot start_clean
 
 # Platform detection.
-# @todo Add Windows/Cygwin detection eventually.
 
 ifeq ($(PLATFORM),)
 UNAME_S := $(shell uname -s)
@@ -66,6 +65,8 @@ else ifeq ($(UNAME_S),OpenBSD)
 PLATFORM = openbsd
 else ifeq ($(UNAME_S),DragonFly)
 PLATFORM = dragonfly
+else ifeq ($(shell uname -o),Msys)
+PLATFORM = msys2
 else
 $(error Unable to detect platform. Please open a ticket with the output of uname -a.)
 endif