]> granicus.if.org Git - esp-idf/commitdiff
build system: Detect wrong Windows MSYSTEM version and warn
authorAngus Gratton <angus@espressif.com>
Thu, 21 Sep 2017 01:21:55 +0000 (11:21 +1000)
committerAngus Gratton <gus@projectgus.com>
Fri, 6 Oct 2017 04:57:40 +0000 (15:57 +1100)
make/project.mk

index a12132c9fcfface217575170f44b2c00bfc09b70..55c730ef7d3ac1027ec071d4aaa575bb6270c017 100644 (file)
@@ -47,7 +47,14 @@ ifndef MAKE_RESTARTS
 ifeq ("$(filter 4.% 3.81 3.82,$(MAKE_VERSION))","")
 $(warning esp-idf build system only supports GNU Make versions 3.81 or newer. You may see unexpected results with other Makes.)
 endif
+
+ifdef MSYSTEM
+ifneq ("$(MSYSTEM)","MINGW32")
+$(warning esp-idf build system only supports MSYS2 in "MINGW32" mode. Consult the ESP-IDF documentation for details.)
 endif
+endif  # MSYSTEM
+
+endif  # MAKE_RESTARTS
 
 # can't run 'clean' along with any non-clean targets
 ifneq ("$(filter clean% %clean,$(MAKECMDGOALS))" ,"")