diff options
-rw-r--r-- | Android.bp | 4 | ||||
-rw-r--r-- | cargo2android.json | 2 | ||||
-rw-r--r-- | patches/Android.bp.patch | 17 |
3 files changed, 3 insertions, 20 deletions
@@ -51,14 +51,14 @@ rust_library_rlib { "//apex_available:platform", "//apex_available:anyapex", ], - product_available: true, - vendor_available: true, prefer_rlib: true, no_stdlibs: true, stdlibs: [ "libcompiler_builtins.rust_sysroot", "libcore.rust_sysroot", ], + product_available: true, + vendor_available: true, } rust_test { diff --git a/cargo2android.json b/cargo2android.json index f3802fd..7da9df5 100644 --- a/cargo2android.json +++ b/cargo2android.json @@ -4,7 +4,7 @@ "features": "hvc", "force-rlib": true, "no-host": true, - "patch": "patches/Android.bp.patch", + "no-std": true, "run": true, "tests": true } diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch deleted file mode 100644 index 1fa0e93..0000000 --- a/patches/Android.bp.patch +++ /dev/null @@ -1,17 +0,0 @@ -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 { |