提交 4db03472 编写于 作者: Y yinchuang
上级 88ff1a75
...@@ -174,9 +174,14 @@ class PostBuild: ...@@ -174,9 +174,14 @@ class PostBuild:
ccache_path = find_executable('ccache') ccache_path = find_executable('ccache')
if ccache_path is None: if ccache_path is None:
return return
ccache_log_file_name = "ccache.log"
ccache_log_suffix = os.environ.get('CCACHE_LOG_SUFFIX')
if ccache_log_suffix:
ccache_log_file_name = "ccache." + ccache_log_suffix + ".log"
cmd = [ cmd = [
'python3', '{}/build/scripts/summary_ccache_hitrate.py'.format( 'python3', '{}/build/scripts/summary_ccache_hitrate.py'.format(
self._root_path), '{}/ccache.log'.format(self._root_path) self._root_path), '{}/{}'.format(self._root_path, ccache_log_file_name)
] ]
exec_command(cmd, log_path=self._log_path) exec_command(cmd, log_path=self._log_path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册