blob: ccc2338b2cb1d3e09d27758d659059f1dcf4818e [file] [log] [blame]
diff --git a/Android.bp b/Android.bp
index 0b5bcde..2372a15 100644
--- a/Android.bp
+++ b/Android.bp
@@ -17,6 +17,12 @@ rust_library {
"//apex_available:platform",
"com.android.virt",
],
+ // This library depends on libdata_model that is is part of crosvm project.
+ // Projects within crosvm on Android have only 64-bit target build enabled.
+ // As a result, we need to manually limit this build to 64-bit only, too.
+ // This is fine because this library is only used by crosvm now (thus 64-bit
+ // only).
+ compile_multilib: "64",
}
rust_defaults {
@@ -41,6 +47,9 @@ rust_test_host {
rust_test {
name: "p9_device_test_src_lib",
defaults: ["p9_defaults"],
+ // Manually limit to 64-bit to avoid depending on non-existing 32-bit build
+ // of libdata_model currently.
+ compile_multilib: "64",
}
// dependent_library ["feature_list"]