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