Skip to content

Commit

Permalink
[fix](chore) fix env.sh build on macOS (#23676)
Browse files Browse the repository at this point in the history
  • Loading branch information
zy-kkk authored and xiaokang committed Sep 5, 2023
1 parent 18d67a0 commit dbcf903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ elif [[ "${DORIS_TOOLCHAIN}" == "clang" ]]; then
fi

covs=()
while IFS='' read -r line; do covs+=("${line}"); done < <(find "${DORIS_CLANG_HOME}" -name "llvm-cov*")
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]}"
else
Expand All @@ -155,7 +155,7 @@ elif [[ "${DORIS_TOOLCHAIN}" == "clang" ]]; then
export LLVM_COV

profdatas=()
while IFS='' read -r line; do profdatas+=("${line}"); done < <(find "${DORIS_CLANG_HOME}" -name "llvm-profdata*")
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]}"
else
Expand Down

0 comments on commit dbcf903

Please sign in to comment.