cosmetic changes
Test: m nothing Bug: N/A Change-Id: Ic3d70339c7b98bf0733dc0e946f3683fe94f5c5b
This commit is contained in:
parent
fb9ca5c7e2
commit
fb67fd121f
2 changed files with 4 additions and 6 deletions
|
@ -170,9 +170,8 @@ func primaryBuilderInvocation(
|
|||
|
||||
commonArgs = append(commonArgs, "-l", filepath.Join(config.FileListDir(), "Android.bp.list"))
|
||||
invocationEnv := make(map[string]string)
|
||||
debugMode := os.Getenv("SOONG_DELVE") != ""
|
||||
|
||||
if debugMode {
|
||||
if os.Getenv("SOONG_DELVE") != "" {
|
||||
//debug mode
|
||||
commonArgs = append(commonArgs, "--delve_listen", os.Getenv("SOONG_DELVE"))
|
||||
commonArgs = append(commonArgs, "--delve_path", shared.ResolveDelveBinary())
|
||||
// GODEBUG=asyncpreemptoff=1 disables the preemption of goroutines. This
|
||||
|
@ -187,7 +186,7 @@ func primaryBuilderInvocation(
|
|||
invocationEnv["GODEBUG"] = "asyncpreemptoff=1"
|
||||
}
|
||||
|
||||
allArgs := make([]string, 0, 0)
|
||||
var allArgs []string
|
||||
allArgs = append(allArgs, specificArgs...)
|
||||
allArgs = append(allArgs,
|
||||
"--globListDir", name,
|
||||
|
|
|
@ -35,8 +35,7 @@ import (
|
|||
func NewNinjaReader(ctx logger.Logger, status ToolStatus, fifo string) *NinjaReader {
|
||||
os.Remove(fifo)
|
||||
|
||||
err := syscall.Mkfifo(fifo, 0666)
|
||||
if err != nil {
|
||||
if err := syscall.Mkfifo(fifo, 0666); err != nil {
|
||||
ctx.Fatalf("Failed to mkfifo(%q): %v", fifo, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue