aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEllen Arteca <emarteca@google.com>2024-05-09 00:01:11 +0000
committerEllen Arteca <emarteca@google.com>2024-05-14 18:07:23 +0000
commit73a569f9ab0be217fcf956364154dc3b36a23c99 (patch)
treea321f65bf70c1edfe001671a86f57c6213cae7a1
parentef21bd2a9b784a5e717b5d92b205917b5e9226f5 (diff)
downloadquiche-master.tar.gz
Adding libc++ explicitly to the shared libraries of rust-only testsHEADmastermain
There is an issue with the boringssl build configuration right now, where libc++ is not made available to a rust-only client. This CL adds an explicit link to libc++. Test: m checkbuild Bug: 340583190 Change-Id: Ibe51ef8cbd0836ddbf6021d2c6955ab3b89a3b0f
-rw-r--r--Android.bp5
-rw-r--r--patches/Android.bp.patch24
2 files changed, 20 insertions, 9 deletions
diff --git a/Android.bp b/Android.bp
index ec19374..4e63b88 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,7 @@
// This file is generated by cargo_embargo.
-// Do not modify this file as changes will be overridden on upgrade.
+// Do not modify this file after the first "rust_*" or "genrule" module
+// because the changes will be overridden on upgrade.
+// Content before the first "rust_*" or "genrule" module is preserved.
package {
default_applicable_licenses: ["external_rust_crates_quiche_license"],
@@ -182,6 +184,7 @@ rust_test {
"examples/cert-big.crt",
"examples/rootca.crt",
],
+ shared_libs: ["libc++"],
}
rust_library_rlib {
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index f635789..3478db5 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -1,8 +1,8 @@
diff --git a/Android.bp b/Android.bp
-index a810b69..ec19374 100644
+index e15ddc5..4e63b88 100644
--- a/Android.bp
+++ b/Android.bp
-@@ -51,11 +51,7 @@ rust_library {
+@@ -53,11 +53,7 @@ rust_library {
cargo_pkg_version: "0.17.1",
srcs: ["src/lib.rs"],
edition: "2018",
@@ -15,7 +15,7 @@ index a810b69..ec19374 100644
"liblazy_static",
"liblibc",
"liblibm",
-@@ -65,7 +61,8 @@ rust_library {
+@@ -67,7 +63,8 @@ rust_library {
"libslab",
"libsmallvec",
],
@@ -25,7 +25,7 @@ index a810b69..ec19374 100644
"libcrypto",
"libssl",
],
-@@ -78,7 +75,7 @@ rust_library {
+@@ -80,7 +77,7 @@ rust_library {
min_sdk_version: "29",
}
@@ -34,7 +34,7 @@ index a810b69..ec19374 100644
name: "libquiche_ffi",
host_supported: true,
crate_name: "quiche",
-@@ -86,11 +83,7 @@ rust_ffi_shared {
+@@ -88,11 +85,7 @@ rust_ffi_shared {
cargo_pkg_version: "0.17.1",
srcs: ["src/lib.rs"],
edition: "2018",
@@ -47,7 +47,7 @@ index a810b69..ec19374 100644
"liblazy_static",
"liblibc",
"liblibm",
-@@ -100,7 +93,8 @@ rust_ffi_shared {
+@@ -102,7 +95,8 @@ rust_ffi_shared {
"libslab",
"libsmallvec",
],
@@ -57,7 +57,7 @@ index a810b69..ec19374 100644
"libcrypto",
"libssl",
],
-@@ -141,7 +135,7 @@ rust_test_host {
+@@ -143,7 +137,7 @@ rust_test_host {
"libsmallvec",
"liburl",
],
@@ -66,7 +66,15 @@ index a810b69..ec19374 100644
"libcrypto",
"libssl",
],
-@@ -198,10 +192,6 @@ rust_library_rlib {
+@@ -190,6 +184,7 @@ rust_test {
+ "examples/cert-big.crt",
+ "examples/rootca.crt",
+ ],
++ shared_libs: ["libc++"],
+ }
+
+ rust_library_rlib {
+@@ -200,10 +195,6 @@ rust_library_rlib {
cargo_pkg_version: "0.17.1",
srcs: ["src/lib.rs"],
edition: "2018",