tools: fix idf.py to be able to select a generator for build

This commit is contained in:
Roland Dobai
2020-03-05 14:53:47 +01:00
parent 63cd2b0613
commit c35538ecee
2 changed files with 16 additions and 0 deletions

View File

@@ -213,6 +213,9 @@ def ensure_build_directory(args, prog_name, always_run_cmake=False):
os.remove(cache_path)
raise
# need to update cache so subsequent access in this method would reflect the result of the previous cmake run
cache = _parse_cmakecache(cache_path) if os.path.exists(cache_path) else {}
try:
generator = cache["CMAKE_GENERATOR"]
except KeyError: