This is an automated email from the ASF dual-hosted git repository. jiafengzheng pushed a commit to branch env-fix-new in repository https://gitbox.apache.org/repos/asf/doris.git
commit 161d5558137c1dcc0d6b488013c1bf1f39ca8fb7 Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Wed Aug 30 17:58:53 2023 +0800 [fix](build) fix env macos support --- env.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/env.sh b/env.sh index a7fe915316..f578f8b662 100755 --- a/env.sh +++ b/env.sh @@ -146,18 +146,22 @@ elif [[ "${DORIS_TOOLCHAIN}" == "clang" ]]; then fi covs=() - while IFS='' read -r line; do covs+=("${line}"); done < <(find "${DORIS_CLANG_HOME}" -name "llvm-cov*") - if [[ ${#covs[@]} -ge 1 ]]; then - LLVM_COV="${covs[0]}" + while IFS=$'\n' read -r line; do + covs+=$line + done < =(find "${DORIS_CLANG_HOME}" -name "llvm-cov*") + if [[ ${#covs} -ge 1 ]]; then + LLVM_COV="${covs[1]}" else LLVM_COV="$(command -v llvm-cov)" fi export LLVM_COV profdatas=() - while IFS='' read -r line; do profdatas+=("${line}"); done < <(find "${DORIS_CLANG_HOME}" -name "llvm-profdata*") - if [[ ${#profdatas[@]} -ge 1 ]]; then - LLVM_PROFDATA="${profdatas[0]}" + while IFS=$'\n' read -r line; do + profdatas+=$line + done < =(find "${DORIS_CLANG_HOME}" -name "llvm-profdata*") + if [[ ${#profdatas} -ge 1 ]]; then + LLVM_PROFDATA="${profdatas[1]}" else LLVM_PROFDATA="$(command -v llvm-profdata)" fi --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org