浏览代码

Merge branch 'feature/windows_build_check_msys2' into 'master'

build system: Detect wrong Windows MSYSTEM version and warn

See merge request !1356

Angus Gratton 8 年之前
父节点
当前提交
63fdf998b8
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      make/project.mk

+ 7 - 0
make/project.mk

@@ -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))" ,"")