Skip to content

Commit 6c30a4a

Browse files
committed
Disable global IDF_TOOLS_PATH variable when invoking IDF build system
Resolve platformio#555
1 parent 46b0e61 commit 6c30a4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

builder/frameworks/espidf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ def populate_idf_env_vars(idf_env):
232232

233233
idf_env["PATH"] = os.pathsep.join(additional_packages + [idf_env["PATH"]])
234234

235+
# Some users reported that the `IDF_TOOLS_PATH` var can seep into the
236+
# underlying build system. Unsetting it is a safe workaround.
237+
if "IDF_TOOLS_PATH" in idf_env:
238+
del idf_env["IDF_TOOLS_PATH"]
239+
235240

236241
def get_target_config(project_configs, target_index, cmake_api_reply_dir):
237242
target_json = project_configs.get("targets")[target_index].get("jsonFile", "")

0 commit comments

Comments
 (0)