diff options
| author | 2023-10-16 19:08:35 +0000 | |
|---|---|---|
| committer | 2023-10-16 19:08:35 +0000 | |
| commit | 59aa97a5943bfa366925a6aa150b096f651de646 (patch) | |
| tree | 10a18e223e609f0a9b525d7b68d7d999c47f518a | |
| parent | bc98b4151d924b142f270f476dfbba326993d6ce (diff) | |
| parent | fb8c5a54ea8b71d043ab8ee641f19fcdca33ab40 (diff) | |
Merge "Remove restriction on android config in generated rust_library targets" into main
| -rw-r--r-- | bp2build/rust_library_conversion_test.go | 3 | ||||
| -rw-r--r-- | rust/library.go | 7 |
2 files changed, 2 insertions, 8 deletions
diff --git a/bp2build/rust_library_conversion_test.go b/bp2build/rust_library_conversion_test.go index 0bc80dfbb..09fc0ed33 100644 --- a/bp2build/rust_library_conversion_test.go +++ b/bp2build/rust_library_conversion_test.go @@ -101,8 +101,7 @@ rust_library_host { `, }, ExpectedBazelTargets: []string{ - // TODO(b/290790800): Remove the restriction when rust toolchain for android is implemented - makeBazelTargetHostOrDevice("rust_library", "libfoo", expectedAttrs, android.HostSupported), + MakeBazelTargetNoRestrictions("rust_library", "libfoo", expectedAttrs), makeBazelTargetHostOrDevice("rust_library", "libfoo_host", expectedAttrs, android.HostSupported), }, }, diff --git a/rust/library.go b/rust/library.go index c59847365..2d5113b0e 100644 --- a/rust/library.go +++ b/rust/library.go @@ -865,11 +865,7 @@ func libraryBp2build(ctx android.Bp2buildMutatorContext, m *Module) { }, } - // TODO(b/290790800): Remove the restriction when rust toolchain for android is implemented - var restriction bazel.BoolAttribute - restriction.SetSelectValue(bazel.OsConfigurationAxis, "android", proptools.BoolPtr(false)) - - ctx.CreateBazelTargetModuleWithRestrictions( + ctx.CreateBazelTargetModule( bazel.BazelTargetModuleProperties{ Rule_class: "rust_library", Bzl_load_location: "@rules_rust//rust:defs.bzl", @@ -878,7 +874,6 @@ func libraryBp2build(ctx android.Bp2buildMutatorContext, m *Module) { Name: m.Name(), }, attrs, - restriction, ) } |