Skip to content

Commit

Permalink
fix for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 committed Apr 6, 2023
1 parent c1ad403 commit cadbb56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ga-build/clang/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ if compare_version "$VERSION" ">=" "14.0.0"; then
pushd build
export CC=clang
export CXX=clang++
LLVM_ENABLE_PROJECTS="clang;clang-tools-extra"
LLVM_ENABLE_PROJECTS='-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi"'
LLVM_ENABLE_RUNTIMES=""
if compare_version "$VERSION" ">=" "16.0.0"; then
# llvm-project 16.0.0 以降はlibcxx, libcxxabi, libunwind, compiler-rtなどは
# LLVM_ENABLE_PROJECTSではなくLLVM_ENABLE_RUNTIMESで指定しなければならない
# cf. https://github.com/llvm/llvm-project/commit/258477ed0ab69d334302225322ac81ac974b59fb
LLVM_ENABLE_PROJECTS='-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"'
LLVM_ENABLE_RUNTIMES='-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi"'
else
LLVM_ENABLE_PROJECTS="${LLVM_ENABLE_PROJECTS};libcxx;libcxxabi"
fi
cmake \
"-DLLVM_ENABLE_PROJECTS=${LLVM_ENABLE_PROJECTS}" \
${LLVM_ENABLE_PROJECTS} \
${LLVM_ENABLE_RUNTIMES} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
Expand Down

0 comments on commit cadbb56

Please sign in to comment.