Merge "Use --frontend_file for ninja instead of cat"

This commit is contained in:
Treehugger Robot 2018-07-18 07:29:31 +00:00 committed by Gerrit Code Review
commit 701a5d6faf
2 changed files with 2 additions and 3 deletions

View file

@ -35,7 +35,7 @@ func runNinja(ctx Context, config Config) {
executable := config.PrebuiltBuildTool("ninja") executable := config.PrebuiltBuildTool("ninja")
args := []string{ args := []string{
"-d", "keepdepfile", "-d", "keepdepfile",
fmt.Sprintf("--frontend=cat <&3 >%s", fifo), "--frontend_file", fifo,
} }
args = append(args, config.NinjaArgs()...) args = append(args, config.NinjaArgs()...)

View file

@ -15,7 +15,6 @@
package build package build
import ( import (
"fmt"
"os" "os"
"path/filepath" "path/filepath"
"strconv" "strconv"
@ -116,7 +115,7 @@ func runSoong(ctx Context, config Config) {
"-d", "keepdepfile", "-d", "keepdepfile",
"-w", "dupbuild=err", "-w", "dupbuild=err",
"-j", strconv.Itoa(config.Parallel()), "-j", strconv.Itoa(config.Parallel()),
fmt.Sprintf("--frontend=cat <&3 >%s", fifo), "--frontend_file", fifo,
"-f", filepath.Join(config.SoongOutDir(), file)) "-f", filepath.Join(config.SoongOutDir(), file))
cmd.Sandbox = soongSandbox cmd.Sandbox = soongSandbox
cmd.RunAndPrintOrFatal() cmd.RunAndPrintOrFatal()