aboutsummaryrefslogtreecommitdiff
path: root/patches/Android.bp.patch
blob: 1fa0e93d9694a1c1be7466630d55e065e44b4c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/Android.bp b/Android.bp
index 34d110a..2348c03 100644
--- a/Android.bp
+++ b/Android.bp
@@ -53,6 +53,12 @@ rust_library_rlib {
     ],
     product_available: true,
     vendor_available: true,
+    prefer_rlib: true,
+    no_stdlibs: true,
+    stdlibs: [
+        "libcompiler_builtins.rust_sysroot",
+        "libcore.rust_sysroot",
+    ],
 }
 
 rust_test {