This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new f69578de0c [Thirdpart](lib) Add lib fast_float to replace
std::from_chars() convert float/double (#16204) (#16346)
f69578de0c is described below
commit f69578de0c0098b01aa544ff086c3c3ed03988ec
Author: Mingyu Chen <[email protected]>
AuthorDate: Thu Feb 2 10:27:36 2023 +0800
[Thirdpart](lib) Add lib fast_float to replace std::from_chars() convert
float/double (#16204) (#16346)
Co-authored-by: HappenLee <[email protected]>
---
dist/licenses/LICENSE-fast_float.txt | 27 +++++++++++++++++++++++++++
thirdparty/build-thirdparty.sh | 8 ++++++++
thirdparty/vars.sh | 7 +++++++
3 files changed, 42 insertions(+)
diff --git a/dist/licenses/LICENSE-fast_float.txt
b/dist/licenses/LICENSE-fast_float.txt
new file mode 100644
index 0000000000..2fb2a37ad7
--- /dev/null
+++ b/dist/licenses/LICENSE-fast_float.txt
@@ -0,0 +1,27 @@
+MIT License
+
+Copyright (c) 2021 The fast_float authors
+
+Permission is hereby granted, free of charge, to any
+person obtaining a copy of this software and associated
+documentation files (the "Software"), to deal in the
+Software without restriction, including without
+limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software
+is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice
+shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
+ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 3ce02c0248..289856cc29 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1538,6 +1538,13 @@ build_concurrentqueue() {
cp ./*.h "${TP_INSTALL_DIR}/include/"
}
+# fast_float
+build_fast_float() {
+ check_if_source_exist "${FAST_FLOAT_SOURCE}"
+ cd "${TP_SOURCE_DIR}/${FAST_FLOAT_SOURCE}"
+ cp -r ./include/fast_float "${TP_INSTALL_DIR}/include/"
+}
+
if [[ "$(uname -s)" == 'Darwin' ]]; then
echo 'build for Darwin'
build_binutils
@@ -1599,5 +1606,6 @@ build_libbacktrace
build_sse2neon
build_xxhash
build_concurrentqueue
+build_fast_float
echo "Finished to build all thirdparties"
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index 22a0669075..110f90b867 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -435,6 +435,12 @@ CONCURRENTQUEUE_NAME=concurrentqueue-1.0.3.tar.gz
CONCURRENTQUEUE_SOURCE=concurrentqueue-1.0.3
CONCURRENTQUEUE_MD5SUM="118e5bb661b567634647312991e10222"
+# fast_float
+FAST_FLOAT_DOWNLOAD="https://github.com/fastfloat/fast_float/archive/refs/tags/v3.9.0.tar.gz"
+FAST_FLOAT_NAME=fast_float-3.9.0.tar.gz
+FAST_FLOAT_SOURCE=fast_float-3.9.0
+FAST_FLOAT_MD5SUM="5656b0d8b150a3b157cfb092d214f6ea"
+
# all thirdparties which need to be downloaded is set in array TP_ARCHIVES
export TP_ARCHIVES=(
'LIBEVENT'
@@ -498,6 +504,7 @@ export TP_ARCHIVES=(
'SSE2NEON'
'XXHASH'
'CONCURRENTQUEUE'
+ 'FAST_FLOAT'
)
if [[ "$(uname -s)" == 'Darwin' ]]; then
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]