File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -405,13 +405,15 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
405
405
]
406
406
cmake_preconf_dir = os .path .join (BUILD_DIR , "config" )
407
407
deafult_sdk_config = os .path .join (PROJECT_DIR , "sdkconfig.defaults" )
408
+ idf_deps_lock = os .path .join (PROJECT_DIR , "dependencies.lock" )
409
+ ninja_buildfile = os .path .join (BUILD_DIR , "build.ninja" )
408
410
409
411
for d in (cmake_api_reply_dir , cmake_preconf_dir ):
410
412
if not os .path .isdir (d ) or not os .listdir (d ):
411
413
return True
412
414
if not os .path .isfile (cmake_cache_file ):
413
415
return True
414
- if not os .path .isfile (os . path . join ( BUILD_DIR , "build.ninja" ) ):
416
+ if not os .path .isfile (ninja_buildfile ):
415
417
return True
416
418
if not os .path .isfile (SDKCONFIG_PATH ) or os .path .getmtime (
417
419
SDKCONFIG_PATH
@@ -421,6 +423,10 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
421
423
deafult_sdk_config
422
424
) > os .path .getmtime (cmake_cache_file ):
423
425
return True
426
+ if os .path .isfile (idf_deps_lock ) and os .path .getmtime (
427
+ idf_deps_lock
428
+ ) > os .path .getmtime (ninja_buildfile ):
429
+ return True
424
430
if any (
425
431
os .path .getmtime (f ) > os .path .getmtime (cmake_cache_file )
426
432
for f in cmake_txt_files + [cmake_preconf_dir , FRAMEWORK_DIR ]
You can’t perform that action at this time.
0 commit comments