Merge "Merge 24Q3 (ab/11976889) to aosp-main-future" into aosp-main-future

This commit is contained in:
Xin Li
2024-06-20 19:38:53 +00:00
committed by Android (Google) Code Review
8 changed files with 38 additions and 33 deletions

View File

@@ -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()),
},
})

View File

@@ -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() {

View File

@@ -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}