Add ESP_PLATFORM to build environment.

Merges https://github.com/espressif/esp-idf/pull/2601
This commit is contained in:
Per Malmberg
2018-10-21 15:34:53 +02:00
committed by Angus Gratton
parent 88dc626fd7
commit 25333b59c2
2 changed files with 3 additions and 1 deletions

View File

@@ -165,7 +165,7 @@ def _ensure_build_directory(args, always_run_cmake=False):
if args.generator is None:
args.generator = detect_cmake_generator()
try:
cmake_args = ["cmake", "-G", args.generator, "-DPYTHON_DEPS_CHECKED=1"]
cmake_args = ["cmake", "-G", args.generator, "-DPYTHON_DEPS_CHECKED=1", "-DESP_PLATFORM=1"]
if not args.no_warnings:
cmake_args += ["--warn-uninitialized"]
if args.no_ccache: