|
|
@@ -310,15 +310,6 @@ def build_target(target_name, ctx, args):
|
|
|
_ensure_build_directory(args)
|
|
|
generator_cmd = GENERATOR_CMDS[args.generator]
|
|
|
|
|
|
- if args.ccache:
|
|
|
- # Setting CCACHE_BASEDIR & CCACHE_NO_HASHDIR ensures that project paths aren't stored in the ccache entries
|
|
|
- # (this means ccache hits can be shared between different projects. It may mean that some debug information
|
|
|
- # will point to files in another project, if these files are perfect duplicates of each other.)
|
|
|
- #
|
|
|
- # It would be nicer to set these from cmake, but there's no cross-platform way to set build-time environment
|
|
|
- # os.environ["CCACHE_BASEDIR"] = args.build_dir
|
|
|
- # os.environ["CCACHE_NO_HASHDIR"] = "1"
|
|
|
- pass
|
|
|
if args.verbose:
|
|
|
generator_cmd += [GENERATOR_VERBOSE[args.generator]]
|
|
|
|
|
|
@@ -997,9 +988,9 @@ def init_cli():
|
|
|
},
|
|
|
{
|
|
|
"names": ["--ccache/--no-ccache"],
|
|
|
- "help": "Use ccache in build. Disabled by default.",
|
|
|
+ "help": "Use ccache in build. Disabled by default, unless IDF_CCACHE_ENABLE environment variable is set to a non-zero value.",
|
|
|
"is_flag": True,
|
|
|
- "default": False,
|
|
|
+ "default": os.getenv("IDF_CCACHE_ENABLE") not in [None, "", "0"],
|
|
|
},
|
|
|
{
|
|
|
"names": ["-G", "--generator"],
|