aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-09-26 14:58:30 -0700
committerDan Willemsen <dwillemsen@google.com>2018-09-28 23:09:24 -0700
commit2997123f7318da7a6c34bc5f0a1efaef37a65aeb (patch)
tree11eb33e52ea0f11568e34ed2ed3c15ba41dd8307 /cmd
parent05518bc13b3cd31e6cb7158a41aa124b224c3bc4 (diff)
downloadbuild_soong-2997123f7318da7a6c34bc5f0a1efaef37a65aeb.tar.gz
build_soong-2997123f7318da7a6c34bc5f0a1efaef37a65aeb.tar.bz2
build_soong-2997123f7318da7a6c34bc5f0a1efaef37a65aeb.zip
Refactor Kati logic
Make the cleanspec & Android.mk runs of kati use much of the same code and arguments. Also renames 'Kati' to 'KatiBuild' in many cases, in the the expectation that we'll have a 'KatiPackage' step in the future. Use --no_ninja_prelude and move local_pool & _kati_always_build_ into the combined ninja file. This will reduce the need to re-read makefiles when Goma is enabled, and it allows us to include more than one Kati-generated ninja file in the build graph. Bug: 116968624 Test: build_test on downstream branches Change-Id: Ibdac689b81f62dc293647fad917d84946f2c3cfa
Diffstat (limited to 'cmd')
-rw-r--r--cmd/multiproduct_kati/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/multiproduct_kati/main.go b/cmd/multiproduct_kati/main.go
index 4933f374..9cb75fa7 100644
--- a/cmd/multiproduct_kati/main.go
+++ b/cmd/multiproduct_kati/main.go
@@ -415,7 +415,7 @@ func buildProduct(mpctx *mpContext, product string) {
}
if *incremental {
// Save space, Kati doesn't notice
- if f := config.KatiNinjaFile(); f != "" {
+ if f := config.KatiBuildNinjaFile(); f != "" {
os.Truncate(f, 0)
}
} else {
@@ -436,7 +436,7 @@ func buildProduct(mpctx *mpContext, product string) {
// Save std_full.log if Kati re-read the makefiles
if buildWhat&build.BuildKati != 0 {
- if after, err := os.Stat(config.KatiNinjaFile()); err == nil && after.ModTime().After(before) {
+ if after, err := os.Stat(config.KatiBuildNinjaFile()); err == nil && after.ModTime().After(before) {
err := copyFile(stdLog, filepath.Join(filepath.Dir(stdLog), "std_full.log"))
if err != nil {
log.Fatalf("Error copying log file: %s", err)