This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 7c5fda11694 [thirdparty](lib) Add streamvbyte thirdparty lib (#29308)
7c5fda11694 is described below
commit 7c5fda11694af93cbb7bae3d0f16dbc8c8335ba1
Author: HappenLee <[email protected]>
AuthorDate: Fri Dec 29 19:22:07 2023 +0800
[thirdparty](lib) Add streamvbyte thirdparty lib (#29308)
---
thirdparty/build-thirdparty.sh | 15 +++++++++++++++
thirdparty/vars.sh | 7 +++++++
2 files changed, 22 insertions(+)
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 43dbe33bd4a..65224886d7b 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1720,6 +1720,20 @@ build_libdeflate() {
"${BUILD_SYSTEM}" install
}
+# streamvbyte
+build_streamvbyte() {
+ check_if_source_exist "${STREAMVBYTE_SOURCE}"
+ cd "${TP_SOURCE_DIR}/${STREAMVBYTE_SOURCE}"
+
+ rm -rf "${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}"
+ cd "${BUILD_DIR}"
+
+ "${CMAKE_CMD}" -G "${GENERATOR}"
-DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" -DCMAKE_BUILD_TYPE=Release ..
+ "${BUILD_SYSTEM}" -j "${PARALLEL}"
+ "${BUILD_SYSTEM}" install
+}
+
if [[ "${#packages[@]}" -eq 0 ]]; then
packages=(
libunixodbc
@@ -1784,6 +1798,7 @@ if [[ "${#packages[@]}" -eq 0 ]]; then
dragonbox
avx2neon
libdeflate
+ streamvbyte
)
if [[ "$(uname -s)" == 'Darwin' ]]; then
read -r -a packages <<<"binutils gettext ${packages[*]}"
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index 5581204d914..7e2d5bf9dc6 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -484,6 +484,12 @@ LIBDEFLATE_NAME=libdeflate-1.19.tar.gz
LIBDEFLATE_SOURCE=libdeflate-1.19
LIBDEFLATE_MD5SUM="c69e9193d2975a729068ffa862c81fb6"
+# streamvbyte
+STREAMVBYTE_DOWNLOAD="https://github.com/lemire/streamvbyte/archive/refs/tags/v1.0.0.tar.gz"
+STREAMVBYTE_NAME=streamvbyte-1.0.0.tar.gz
+STREAMVBYTE_SOURCE=streamvbyte-1.0.0
+STREAMVBYTE_MD5SUM="f334219db5a832b6dae3589a56a29563"
+
# all thirdparties which need to be downloaded is set in array TP_ARCHIVES
export TP_ARCHIVES=(
'LIBEVENT'
@@ -555,6 +561,7 @@ export TP_ARCHIVES=(
'DRAGONBOX'
'AVX2NEON'
'LIBDEFLATE'
+ 'STREAMVBYTE'
)
if [[ "$(uname -s)" == 'Darwin' ]]; then
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]