xref: /aosp_15_r20/external/crosvm/crosvm_control/cargo2android.bp.patch (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1diff --git a/crosvm_control/Android.bp b/crosvm_control/Android.bp
2index 34e77e142..d73c7ec15 100644
3--- a/crosvm_control/Android.bp
4+++ b/crosvm_control/Android.bp
5@@ -28,7 +28,11 @@ rust_ffi_shared {
6         "libswap",
7         "libvm_control",
8     ],
9-    static_libs: ["libcrosvm_control_test"],
10+    // The build.rs file compiles the generated C header just as a test, which
11+    // tricks cargo_embargo into thinking there is a library dependency that
12+    // doesn't actually exist.
13+    //
14+    // static_libs: ["libcrosvm_control_test"],
15 }
16
17 rust_ffi_static {
18@@ -47,6 +51,10 @@ rust_ffi_static {
19         "libswap",
20         "libvm_control",
21     ],
22-    static_libs: ["libcrosvm_control_test"],
23+    // The build.rs file compiles the generated C header just as a test, which
24+    // tricks cargo_embargo into thinking there is a library dependency that
25+    // doesn't actually exist.
26+    //
27+    // static_libs: ["libcrosvm_control_test"],
28     visibility: ["//packages/modules/Virtualization/android/virtmgr"],
29 }
30