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 e40da670b5 [chore](macOS) Fix the compilation errors when building
third party libraries (#14813)
e40da670b5 is described below
commit e40da670b52517eb25172925af4ae310c4fccdc4
Author: Adonis Ling <[email protected]>
AuthorDate: Wed Dec 7 08:48:06 2022 +0800
[chore](macOS) Fix the compilation errors when building third party
libraries (#14813)
---
thirdparty/build-thirdparty.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 2a6cd85f9f..316f27c9f7 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -147,7 +147,8 @@ elif [[ "${CC}" == *clang ]]; then
boost_toolset='clang'
libhdfs_cxx17='-std=c++1z'
- if "${CC}" -xc++ "${warning_unused_but_set_variable}" /dev/null 2>&1 |
grep 'unknown warning option'; then
+ test_warning_result="$("${CC}" -xc++ "${warning_unused_but_set_variable}"
/dev/null 2>&1 || true)"
+ if echo "${test_warning_result}" | grep 'unknown warning option'
>/dev/null; then
warning_unused_but_set_variable=''
fi
fi
@@ -817,7 +818,7 @@ build_cyrus_sasl() {
check_if_source_exist "${CYRUS_SASL_SOURCE}"
cd "${TP_SOURCE_DIR}/${CYRUS_SASL_SOURCE}"
- CFLAGS="-fPIC" \
+ CFLAGS="-fPIC -Wno-implicit-function-declaration" \
CPPFLAGS="-I${TP_INCLUDE_DIR}" \
LDFLAGS="-L${TP_LIB_DIR}" \
LIBS="-lcrypto" \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]