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