Export rust flags for arm, x86, and x86_64 to Bazel

Test: b build //build/bazel/examples/rust:all --config=android
Bug: 295918553
Change-Id: I53d393f4cc5cd99ccd17d37e32211adaaba5bd0a
This commit is contained in:
Vinh Tran 2023-10-05 15:05:55 -04:00
parent ad35c57288
commit 308096475b
3 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,7 @@ func init() {
strings.Join(rustFlags, " "))
}
ExportedVars.ExportStringListStaticVariable("DEVICE_ARM_RUSTC_FLAGS", ArmRustFlags)
}
type toolchainArm struct {

View file

@ -53,7 +53,7 @@ func init() {
pctx.StaticVariable("X86_64"+variant+"VariantRustFlags",
strings.Join(rustFlags, " "))
}
ExportedVars.ExportStringListStaticVariable("DEVICE_X86_64_RUSTC_FLAGS", x86_64RustFlags)
}
type toolchainX86_64 struct {

View file

@ -55,6 +55,7 @@ func init() {
strings.Join(rustFlags, " "))
}
ExportedVars.ExportStringListStaticVariable("DEVICE_X86_RUSTC_FLAGS", x86RustFlags)
}
type toolchainX86 struct {