Merge "Setup ANDROID_RUST_VERSION env variable"

This commit is contained in:
Jeffrey Vander Stoep 2021-02-23 10:10:06 +00:00 committed by Gerrit Code Review
commit 22af74eafd

View file

@ -230,6 +230,8 @@ func transformSrctoCrate(ctx ModuleContext, main android.Path, deps PathDeps, fl
envVars = append(envVars, "OUT_DIR="+filepath.Join(outDirPrefix, moduleGenDir.String()))
}
envVars = append(envVars, "ANDROID_RUST_VERSION="+config.RustDefaultVersion)
if flags.Clippy {
clippyFile := android.PathForModuleOut(ctx, outputFile.Base()+".clippy")
ctx.Build(pctx, android.BuildParams{