cmake: Set uninitialized variable warnings in ULP & bootloader subprojects

Fixes issue where PYTHON was not being expanded when running ulp_mapgen.py,
causing Windows launch setting to be used - reported here:
https://esp32.com/viewtopic.php?f=13&t=12640&p=50283#p50283

Closes https://github.com/espressif/esp-idf/issues/4785
This commit is contained in:
Angus Gratton
2019-10-10 12:46:42 +11:00
committed by Angus Gratton
parent bdeec924a2
commit a8fe083017
5 changed files with 27 additions and 4 deletions

View File

@@ -236,6 +236,7 @@ def _ensure_build_directory(args, always_run_cmake=False):
]
if not args.no_warnings:
cmake_args += ["--warn-uninitialized"]
cmake_args += ["-DWARN_UNINITIALIZED=1"]
if args.define_cache_entry:
cmake_args += ["-D" + d for d in args.define_cache_entry]