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 @@ -139,13 +139,15 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
139
139
]
140
140
cmake_preconf_dir = os .path .join (BUILD_DIR , "config" )
141
141
deafult_sdk_config = os .path .join (PROJECT_DIR , "sdkconfig.defaults" )
142
+ idf_deps_lock = os .path .join (PROJECT_DIR , "dependencies.lock" )
143
+ ninja_buildfile = os .path .join (BUILD_DIR , "build.ninja" )
142
144
143
145
for d in (cmake_api_reply_dir , cmake_preconf_dir ):
144
146
if not os .path .isdir (d ) or not os .listdir (d ):
145
147
return True
146
148
if not os .path .isfile (cmake_cache_file ):
147
149
return True
148
- if not os .path .isfile (os . path . join ( BUILD_DIR , "build.ninja" ) ):
150
+ if not os .path .isfile (ninja_buildfile ):
149
151
return True
150
152
if not os .path .isfile (SDKCONFIG_PATH ) or os .path .getmtime (
151
153
SDKCONFIG_PATH
@@ -155,6 +157,10 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
155
157
deafult_sdk_config
156
158
) > os .path .getmtime (cmake_cache_file ):
157
159
return True
160
+ if os .path .isfile (idf_deps_lock ) and os .path .getmtime (
161
+ idf_deps_lock
162
+ ) > os .path .getmtime (ninja_buildfile ):
163
+ return True
158
164
if any (
159
165
os .path .getmtime (f ) > os .path .getmtime (cmake_cache_file )
160
166
for f in cmake_txt_files + [cmake_preconf_dir , FRAMEWORK_DIR ]
You can’t perform that action at this time.
0 commit comments