Merge "Compile soong_build for debugging if needed."
This commit is contained in:
@@ -73,6 +73,10 @@ func (c Config) NinjaBuildDir() string {
|
||||
return c.buildDir
|
||||
}
|
||||
|
||||
func (c Config) DebugCompilation() bool {
|
||||
return false // Never compile Go code in the main build for debugging
|
||||
}
|
||||
|
||||
func (c Config) SrcDir() string {
|
||||
return c.srcDir
|
||||
}
|
||||
|
@@ -68,6 +68,7 @@ type BlueprintConfig struct {
|
||||
srcDir string
|
||||
buildDir string
|
||||
ninjaBuildDir string
|
||||
debugCompilation bool
|
||||
}
|
||||
|
||||
func (c BlueprintConfig) SrcDir() string {
|
||||
@@ -82,6 +83,10 @@ func (c BlueprintConfig) NinjaBuildDir() string {
|
||||
return c.ninjaBuildDir
|
||||
}
|
||||
|
||||
func (c BlueprintConfig) DebugCompilation() bool {
|
||||
return c.debugCompilation
|
||||
}
|
||||
|
||||
func bootstrapBlueprint(ctx Context, config Config) {
|
||||
ctx.BeginTrace(metrics.RunSoong, "blueprint bootstrap")
|
||||
defer ctx.EndTrace()
|
||||
@@ -105,6 +110,7 @@ func bootstrapBlueprint(ctx Context, config Config) {
|
||||
srcDir: os.Getenv("TOP"),
|
||||
buildDir: config.SoongOutDir(),
|
||||
ninjaBuildDir: config.OutDir(),
|
||||
debugCompilation: os.Getenv("SOONG_DELVE") != "",
|
||||
}
|
||||
|
||||
bootstrap.RunBlueprint(args, blueprintCtx, blueprintConfig)
|
||||
|
Reference in New Issue
Block a user