Merge "Turn on ninja phony outputs"
This commit is contained in:
@@ -53,7 +53,6 @@ builddir = {{.OutDir}}
|
|||||||
{{end -}}
|
{{end -}}
|
||||||
pool highmem_pool
|
pool highmem_pool
|
||||||
depth = {{.HighmemParallel}}
|
depth = {{.HighmemParallel}}
|
||||||
build _kati_always_build_: phony
|
|
||||||
{{if .HasKatiSuffix}}subninja {{.KatiBuildNinjaFile}}
|
{{if .HasKatiSuffix}}subninja {{.KatiBuildNinjaFile}}
|
||||||
subninja {{.KatiPackageNinjaFile}}
|
subninja {{.KatiPackageNinjaFile}}
|
||||||
{{end -}}
|
{{end -}}
|
||||||
|
@@ -67,6 +67,7 @@ func runKati(ctx Context, config Config, extraSuffix string, args []string, envF
|
|||||||
"--ninja_dir=" + config.OutDir(),
|
"--ninja_dir=" + config.OutDir(),
|
||||||
"--ninja_suffix=" + config.KatiSuffix() + extraSuffix,
|
"--ninja_suffix=" + config.KatiSuffix() + extraSuffix,
|
||||||
"--no_ninja_prelude",
|
"--no_ninja_prelude",
|
||||||
|
"--use_ninja_phony_output",
|
||||||
"--regen",
|
"--regen",
|
||||||
"--ignore_optional_include=" + filepath.Join(config.OutDir(), "%.P"),
|
"--ignore_optional_include=" + filepath.Join(config.OutDir(), "%.P"),
|
||||||
"--detect_android_echo",
|
"--detect_android_echo",
|
||||||
|
@@ -58,6 +58,7 @@ func runNinja(ctx Context, config Config) {
|
|||||||
args = append(args, "-f", config.CombinedNinjaFile())
|
args = append(args, "-f", config.CombinedNinjaFile())
|
||||||
|
|
||||||
args = append(args,
|
args = append(args,
|
||||||
|
"-o", "usesphonyoutputs=yes",
|
||||||
"-w", "dupbuild=err",
|
"-w", "dupbuild=err",
|
||||||
"-w", "missingdepfile=err")
|
"-w", "missingdepfile=err")
|
||||||
|
|
||||||
|
@@ -119,7 +119,11 @@ func runSoong(ctx Context, config Config) {
|
|||||||
cmd := Command(ctx, config, "soong "+name,
|
cmd := Command(ctx, config, "soong "+name,
|
||||||
config.PrebuiltBuildTool("ninja"),
|
config.PrebuiltBuildTool("ninja"),
|
||||||
"-d", "keepdepfile",
|
"-d", "keepdepfile",
|
||||||
|
"-o", "usesphonyoutputs=yes",
|
||||||
|
"-o", "preremoveoutputs=yes",
|
||||||
"-w", "dupbuild=err",
|
"-w", "dupbuild=err",
|
||||||
|
"-w", "outputdir=err",
|
||||||
|
"-w", "missingoutfile=err",
|
||||||
"-j", strconv.Itoa(config.Parallel()),
|
"-j", strconv.Itoa(config.Parallel()),
|
||||||
"--frontend_file", fifo,
|
"--frontend_file", fifo,
|
||||||
"-f", filepath.Join(config.SoongOutDir(), file))
|
"-f", filepath.Join(config.SoongOutDir(), file))
|
||||||
|
Reference in New Issue
Block a user