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:
parent
ad35c57288
commit
308096475b
3 changed files with 3 additions and 1 deletions
|
@ -44,6 +44,7 @@ func init() {
|
|||
strings.Join(rustFlags, " "))
|
||||
}
|
||||
|
||||
ExportedVars.ExportStringListStaticVariable("DEVICE_ARM_RUSTC_FLAGS", ArmRustFlags)
|
||||
}
|
||||
|
||||
type toolchainArm struct {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -55,6 +55,7 @@ func init() {
|
|||
strings.Join(rustFlags, " "))
|
||||
}
|
||||
|
||||
ExportedVars.ExportStringListStaticVariable("DEVICE_X86_RUSTC_FLAGS", x86RustFlags)
|
||||
}
|
||||
|
||||
type toolchainX86 struct {
|
||||
|
|
Loading…
Reference in a new issue