IDF: Reduce time between consecutive builds by enabling implicit build cache
This commit is contained in:
@@ -624,6 +624,7 @@ def prepare_build_envs(config, default_env, debug_allowed=True):
|
|||||||
defines = extract_defines(cg)
|
defines = extract_defines(cg)
|
||||||
compile_commands = cg.get("compileCommandFragments", [])
|
compile_commands = cg.get("compileCommandFragments", [])
|
||||||
build_env = default_env.Clone()
|
build_env = default_env.Clone()
|
||||||
|
build_env.SetOption("implicit_cache", 1)
|
||||||
for cc in compile_commands:
|
for cc in compile_commands:
|
||||||
build_flags = cc.get("fragment")
|
build_flags = cc.get("fragment")
|
||||||
if not build_flags.startswith("-D"):
|
if not build_flags.startswith("-D"):
|
||||||
|
|||||||
Reference in New Issue
Block a user