aboutsummaryrefslogtreecommitdiff
path: root/patches/Android.bp.diff
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2020-12-12 02:47:29 +0900
committerBernie Innocenti <codewiz@google.com>2020-12-14 19:46:43 +0900
commit9c1034df26df9f5bcff53d67925b06077db15725 (patch)
tree8e09089f861173a95eee4ec310cb2d4ed7c96505 /patches/Android.bp.diff
parent882b714d590f29552709d1d386f39aeb2d1fb439 (diff)
downloadlazy_static-9c1034df26df9f5bcff53d67925b06077db15725.tar.gz
Allow using lazy_static from Mainline modules
Test: m Bug: 155855709 Change-Id: I53966d839201a2c9f24e3a3effe50d951f9feeba
Diffstat (limited to 'patches/Android.bp.diff')
-rw-r--r--patches/Android.bp.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/Android.bp.diff b/patches/Android.bp.diff
new file mode 100644
index 0000000..3c1b4cb
--- /dev/null
+++ b/patches/Android.bp.diff
@@ -0,0 +1,20 @@
+--- Android.bp 2020-12-14 18:47:48.373508351 +0900
++++ Android.bp.new 2020-12-14 18:47:04.753908034 +0900
+@@ -2,8 +2,17 @@
+
+ rust_library {
+ name: "liblazy_static",
++ // has rustc warnings
+ host_supported: true,
+ crate_name: "lazy_static",
+ srcs: ["src/lib.rs"],
+ edition: "2015",
++ apex_available: [
++ "//apex_available:platform",
++ "com.android.resolv",
++ ],
++ min_sdk_version: "29",
+ }
++
++// dependent_library ["feature_list"]
++// doc-comment-0.3.3