Make debugging easier: am: 122b3ee153
am: 5506289b6d
am: b89005d459
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1610784 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I578d3f005894a8be05dfac118aba390014ca274f
This commit is contained in:
commit
3992917a44
2 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,7 @@ var (
|
|||
// TODO: it's kinda ugly that some parameters are computed from
|
||||
// environment variables and some from Ninja parameters, but it's probably
|
||||
// better to not to touch that while Blueprint and Soong are separate
|
||||
Command: "cd $$(dirname $builder) && BUILDER=$$PWD/$$(basename $builder) && cd / && env -i $$BUILDER $extra --top \"$$TOP\" --out \"$$SOONG_OUTDIR\" -b $buildDir -n $ninjaBuildDir -d $out.d -globFile $globFile -o $out $in",
|
||||
Command: "cd $$(dirname $builder) && BUILDER=$$PWD/$$(basename $builder) && cd / && env -i $$BUILDER $extra --top \"$$TOP\" --out \"$$SOONG_OUTDIR\" --delve_listen \"$$SOONG_DELVE\" --delve_path \"$$SOONG_DELVE_PATH\" -b $buildDir -n $ninjaBuildDir -d $out.d -globFile $globFile -o $out $in",
|
||||
CommandDeps: []string{"$builder"},
|
||||
Description: "$builder $out",
|
||||
Deps: blueprint.DepsGCC,
|
||||
|
|
|
@ -397,6 +397,7 @@ func (p *GoPackage) Compile(config *Config, outDir string) error {
|
|||
fmt.Fprintln(hash, runtime.GOOS, runtime.GOARCH, goVersion)
|
||||
|
||||
cmd := exec.Command(filepath.Join(goToolDir, "compile"),
|
||||
"-N", "-l", // Disable optimization and inlining so that debugging works better
|
||||
"-o", p.output,
|
||||
"-p", p.Name,
|
||||
"-complete", "-pack", "-nolocalimports")
|
||||
|
|
Loading…
Reference in a new issue