Expose Clang wrapper's dump usage stats option

This allows us to track how much time is spent in Clang.

Test: TOOLCHAIN_RUSAGE_OUTPUT=/tmp/rusage.txt m
Change-Id: Ib2961904f363bc59bd9d928bb055a96740cb9f17
This commit is contained in:
Yi Kong
2022-04-17 15:01:06 +08:00
parent 6840b8959c
commit 6adf2585a1
2 changed files with 6 additions and 0 deletions

View File

@@ -205,6 +205,9 @@ func runMakeProductConfig(ctx Context, config Config) {
"CCACHE_SLOPPINESS",
"CCACHE_BASEDIR",
"CCACHE_CPP2",
// LLVM compiler wrapper options
"TOOLCHAIN_RUSAGE_OUTPUT",
}
allVars := append(append([]string{

View File

@@ -169,6 +169,9 @@ func runNinjaForBuild(ctx Context, config Config) {
"CCACHE_BASEDIR",
"CCACHE_CPP2",
"CCACHE_DIR",
// LLVM compiler wrapper options
"TOOLCHAIN_RUSAGE_OUTPUT",
}, config.BuildBrokenNinjaUsesEnvVars()...)...)
}