Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10483 from EOSIO/praphael/EPE-1127
Browse files Browse the repository at this point in the history
fix MacOS 10.15 pinned build problem with clang10
  • Loading branch information
praphael authored Jul 8, 2021
2 parents 66b81ac + 50a1a72 commit 294b475
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/helpers/eosio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,15 @@ function build-clang() {
if $BUILD_CLANG; then
echo "${COLOR_CYAN}[Ensuring Clang support]${COLOR_NC}"
if [[ ! -d $CLANG_ROOT ]]; then
if [[ $ARCH == "Darwin" ]]; then
export CMAKE_XTRA_FLAGS="-DCOMPILER_RT_INCLUDE_TESTS=0 -DCOMPILER_RT_BUILD_SANITIZERS=0 -DCOMPILER_RT_BUILD_XRAY=0"
fi
execute bash -c "cd ${TEMP_DIR} \
&& rm -rf clang10 \
&& git clone --single-branch --branch $PINNED_COMPILER_BRANCH https://github.com/llvm/llvm-project clang10 \
&& cd clang10 \
&& mkdir build && cd build \
&& ${CMAKE} -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX='${CLANG_ROOT}' -DLLVM_ENABLE_PROJECTS='lld;polly;clang;clang-tools-extra;libcxx;libcxxabi;libunwind;compiler-rt' -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_DOCS=OFF -DLLVM_TARGETS_TO_BUILD=host -DCMAKE_BUILD_TYPE=Release ../llvm \
&& ${CMAKE} -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX='${CLANG_ROOT}' -DLLVM_ENABLE_PROJECTS='lld;polly;clang;clang-tools-extra;libcxx;libcxxabi;libunwind;compiler-rt' -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_INCLUDE_DOCS=OFF -DLLVM_TARGETS_TO_BUILD=host -DCMAKE_BUILD_TYPE=Release ${CMAKE_XTRA_FLAGS} ../llvm \
&& make -j${JOBS} \
&& make install"
echo " - Clang 10 successfully installed @ ${CLANG_ROOT}"
Expand Down

0 comments on commit 294b475

Please sign in to comment.