aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2019-09-09 15:05:46 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-09 15:05:46 -0700
commita67351f3f2c8a3077ea35a6e10e8a1009f408ca2 (patch)
treedc339373c79bd859efbba8a6c55b3bbdec1409e2
parent2388957a87c59b37a99c4dac528850ce36b00834 (diff)
parent3a3b2af4f77e67b1bc3de7b819b72702a252bfcb (diff)
downloadlibc-a67351f3f2c8a3077ea35a6e10e8a1009f408ca2.tar.gz
Add libc (rust) build file. am: da7b119f43 am: dd695639b1
am: 3a3b2af4f7 Change-Id: Ib84bf8488357ff9c4805b2d839e25b3ba9871f69
-rw-r--r--Android.bp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..83153598
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,20 @@
+rust_library_rlib {
+ name: "libc_rust",
+ crate_name: "libc",
+ edition: "2015",
+ stem: "liblibc",
+ srcs: ["src/lib.rs"],
+ host_supported: true,
+
+ features: [
+ "std",
+ "default",
+ ],
+ flags: [
+ "--cfg libc_priv_mod_use",
+ "--cfg libc_union",
+ "--cfg libc_const_size_of",
+ "--cfg libc_align",
+ "--cfg libc_core_cvoid",
+ ],
+}