Add --kati_stats to cleanspec processing
So that we can see where the time is going. Also removes the obsolete ASAN_OPTIONS, which moved to kati, but I forgot to update this instance. Test: m nothing; check out/soong.log Change-Id: I0c4066bad20fc2dc22b389f4c973d10dca554ee3
This commit is contained in:
@@ -197,6 +197,7 @@ func runKatiCleanSpec(ctx Context, config Config) {
|
|||||||
"--werror_find_emulator",
|
"--werror_find_emulator",
|
||||||
"--werror_overriding_commands",
|
"--werror_overriding_commands",
|
||||||
"--use_find_emulator",
|
"--use_find_emulator",
|
||||||
|
"--kati_stats",
|
||||||
"-f", "build/make/core/cleanbuild.mk",
|
"-f", "build/make/core/cleanbuild.mk",
|
||||||
"BUILDING_WITH_NINJA=true",
|
"BUILDING_WITH_NINJA=true",
|
||||||
"SOONG_MAKEVARS_MK=" + config.SoongMakeVarsMk(),
|
"SOONG_MAKEVARS_MK=" + config.SoongMakeVarsMk(),
|
||||||
@@ -205,10 +206,13 @@ func runKatiCleanSpec(ctx Context, config Config) {
|
|||||||
|
|
||||||
cmd := Command(ctx, config, "ckati", executable, args...)
|
cmd := Command(ctx, config, "ckati", executable, args...)
|
||||||
cmd.Sandbox = katiCleanSpecSandbox
|
cmd.Sandbox = katiCleanSpecSandbox
|
||||||
cmd.Stdout = ctx.Stdout()
|
pipe, err := cmd.StdoutPipe()
|
||||||
cmd.Stderr = ctx.Stderr()
|
if err != nil {
|
||||||
|
ctx.Fatalln("Error getting output pipe for ckati:", err)
|
||||||
|
}
|
||||||
|
cmd.Stderr = cmd.Stdout
|
||||||
|
|
||||||
// Kati leaks memory, so ensure leak detection is turned off
|
cmd.StartOrFatal()
|
||||||
cmd.Environment.Set("ASAN_OPTIONS", "detect_leaks=0")
|
katiRewriteOutput(ctx, pipe)
|
||||||
cmd.RunOrFatal()
|
cmd.WaitOrFatal()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user