Merge branch 'bugfix/make_build_dir_base' into 'master'

make build system: Produce an error if BUILD_DIR_BASE is a Windows-style path

Closes IDFGH-472

See merge request espressif/esp-idf!12722
pull/6828/head
Angus Gratton 2021-03-31 00:30:30 +00:00
commit 2b71acebc5
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -134,6 +134,13 @@ export COMMON_MAKEFILES
ifndef BUILD_DIR_BASE
BUILD_DIR_BASE := $(PROJECT_PATH)/build
endif
ifneq ("$(BUILD_DIR_BASE)","$(subst :,,$(BUILD_DIR_BASE))")
$(error BUILD_DIR_BASE ($(BUILD_DIR_BASE)) cannot contain colons. If setting this path on Windows, use MSYS Unix-style /c/dir instead of C:/dir)
endif
BUILD_DIR_BASE := $(abspath $(BUILD_DIR_BASE))
export BUILD_DIR_BASE
# Component directories. These directories are searched for components (either the directory is a component,