提交 f1b075db 编写于 作者: Y yangming_ha

move ccache process to build process

Signed-off-by: Nyangming_ha <yangming_ha@163.com>
上级 8205aabf
......@@ -42,4 +42,4 @@ CONFIG_STRUCT = {
"device_path": None,
"patch_cache": None
}
VERSION = '0.4.2'
VERSION = '0.4.1'
......@@ -99,9 +99,4 @@ def exec_command(args):
'true',
quota=False)
# enable ccache if it installed.
ccache_path = find_executable('ccache')
if ccache_path is not None:
build.register_args('ohos_build_enable_ccache', 'true', quota=False)
return build.build(args.full, patch=args.patch, cmd_args=cmd_args)
......@@ -117,6 +117,11 @@ class Build():
def build(self, full_compile, patch=False, ninja=True, cmd_args=None):
cmd_list = self.get_cmd(full_compile, patch, ninja)
# enable ccache if it installed.
ccache_path = find_executable('ccache')
if ccache_path is not None:
build.register_args('ohos_build_enable_ccache', 'true', quota=False)
if cmd_args is None:
cmd_args = defaultdict(list)
for exec_cmd in cmd_list:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册