diff options
author | Jeffrey Vander Stoep <jeffv@google.com> | 2020-12-08 10:32:11 +0000 |
---|---|---|
committer | Jeffrey Vander Stoep <jeffv@google.com> | 2020-12-08 10:32:11 +0000 |
commit | d802ab86791a1559b8fa8ea090a957d3580be04e (patch) | |
tree | 35c146bdd1f6066aa551062f92b17f1a6e49aa4c /patches/env.diff | |
parent | 4a3a1c0677ed68a7dfc5516e91b74abf5ec134b5 (diff) | |
download | quiche-d802ab86791a1559b8fa8ea090a957d3580be04e.tar.gz |
Revert "Revert "Add Android.bp""
This reverts commit 4a3a1c0677ed68a7dfc5516e91b74abf5ec134b5.
Reason for revert: build fixed
Change-Id: I028fd3e103e5c0058016e84951f922dd0c3d682c
Diffstat (limited to 'patches/env.diff')
-rw-r--r-- | patches/env.diff | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/env.diff b/patches/env.diff new file mode 100644 index 0000000..39629cf --- /dev/null +++ b/patches/env.diff @@ -0,0 +1,16 @@ +diff --git a/src/ffi.rs b/src/ffi.rs +index 13d98cd..39564dc 100644 +--- a/src/ffi.rs ++++ b/src/ffi.rs +@@ -42,7 +42,10 @@ use crate::*; + + #[no_mangle] + pub extern fn quiche_version() -> *const u8 { +- static VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "\0"); ++ //static VERSION: &str = concat!(env!("CARGO_PKG_VERSION"), "\0"); ++ // ANDROID's build system doesn't support environment variables ++ // so we hardcode the package version here. ++ static VERSION: &str = concat!("0.6.0", "\0"); + VERSION.as_ptr() + } + |