summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Vinh Tran <vinhdaitran@google.com> 2023-10-17 16:28:04 -0400
committer Vinh Tran <vinhdaitran@google.com> 2023-10-19 11:22:51 -0400
commit7515994523ae38658e76b0a74faa030e431565a0 (patch)
treed48a7624fdc1e01ab67bcf5517506f111c9669f7 /rust/rust.go
parent786c44f9f37808dc1cc9edd3a19cd6d422e885d3 (diff)
Add bp2build converter for rust_ffi_static
Test: go test Change-Id: Ibf0bb2687073f8650da4ca27c1f57e68a93025d4
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go
index ba63613a2..19c5230b4 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -1891,6 +1891,8 @@ func (m *Module) ConvertWithBp2build(ctx android.Bp2buildMutatorContext) {
binaryBp2build(ctx, m)
} else if ctx.ModuleType() == "rust_protobuf_host" || ctx.ModuleType() == "rust_protobuf" {
protoLibraryBp2build(ctx, m)
+ } else if ctx.ModuleType() == "rust_ffi_static" {
+ ffiStaticBp2build(ctx, m)
} else {
ctx.MarkBp2buildUnconvertible(bp2build_metrics_proto.UnconvertedReasonType_TYPE_UNSUPPORTED, "")
}