Merge "Use --frontend_file for ninja instead of cat"
This commit is contained in:
@@ -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()...)
|
||||||
|
@@ -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()
|
||||||
|
Reference in New Issue
Block a user