Merge "Merge 24Q3 (ab/11976889) to aosp-main-future" into aosp-main-future
This commit is contained in:
@@ -156,7 +156,7 @@ func (this *CcAconfigLibraryCallbacks) GeneratorBuildActions(ctx cc.ModuleContex
|
||||
Args: map[string]string{
|
||||
"gendir": this.generatedDir.String(),
|
||||
"mode": mode,
|
||||
"debug": strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorageCc()),
|
||||
"debug": strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorage()),
|
||||
},
|
||||
})
|
||||
|
||||
|
@@ -64,11 +64,12 @@ var (
|
||||
` && ${aconfig} create-rust-lib` +
|
||||
` --mode ${mode}` +
|
||||
` --cache ${in}` +
|
||||
` --allow-instrumentation ${debug}` +
|
||||
` --out ${gendir}`,
|
||||
CommandDeps: []string{
|
||||
"$aconfig",
|
||||
},
|
||||
}, "gendir", "mode")
|
||||
}, "gendir", "mode", "debug")
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@@ -2,6 +2,7 @@ package codegen
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"android/soong/android"
|
||||
"android/soong/rust"
|
||||
@@ -82,6 +83,7 @@ func (a *aconfigDecorator) GenerateSource(ctx rust.ModuleContext, deps rust.Path
|
||||
Args: map[string]string{
|
||||
"gendir": generatedDir.String(),
|
||||
"mode": mode,
|
||||
"debug": strconv.FormatBool(ctx.Config().ReleaseReadFromNewStorage()),
|
||||
},
|
||||
})
|
||||
a.BaseSourceProvider.OutputFiles = android.Paths{generatedSource}
|
||||
|
Reference in New Issue
Block a user