aboutsummaryrefslogtreecommitdiffstats
path: root/core/core.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-12 01:00:52 +0200
committerLoïc Hoguin <[email protected]>2015-09-12 01:00:52 +0200
commitbfa6cf25fcad6547101d34810cf9833533a6b07a (patch)
tree150f10e6c9690cced75981c702e1d6f86cc01aa8 /core/core.mk
parentfcaf53ed884074a08e87abd540e8bfaecca0119f (diff)
downloaderlang.mk-bfa6cf25fcad6547101d34810cf9833533a6b07a.tar.gz
erlang.mk-bfa6cf25fcad6547101d34810cf9833533a6b07a.tar.bz2
erlang.mk-bfa6cf25fcad6547101d34810cf9833533a6b07a.zip
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.
Diffstat (limited to 'core/core.mk')
-rw-r--r--core/core.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/core.mk b/core/core.mk
index 08294d0..c2a153c 100644
--- a/core/core.mk
+++ b/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