forked from oap-project/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GLUTEN-1963][CH] upgrade to clang-16 (facebookincubator#2073)
- Loading branch information
Showing
6 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/bash | ||
|
||
echo "Install cmake and ninja" | ||
apt install -y git cmake ccache python3 ninja-build yasm gawk | ||
echo "Install llvm" | ||
LLVM_VERSION=15 | ||
export LLVM_PUBKEY_HASH="bda960a8da687a275a2078d43c111d66b1c6a893a3275271beedf266c1ff4a0cdecb429c7a5cccf9f486ea7aa43fd27f" | ||
wget -nv -O /tmp/llvm-snapshot.gpg.key https://apt.llvm.org/llvm-snapshot.gpg.key | ||
echo "${LLVM_PUBKEY_HASH} /tmp/llvm-snapshot.gpg.key" | sha384sum -c | ||
apt-key add /tmp/llvm-snapshot.gpg.key | ||
export CODENAME="$(lsb_release --codename --short | tr 'A-Z' 'a-z')" | ||
echo "deb [trusted=yes] http://apt.llvm.org/${CODENAME}/ llvm-toolchain-${CODENAME}-${LLVM_VERSION} main" >> /etc/apt/sources.list | ||
|
||
apt install -y llvm-${LLVM_VERSION} clang-${LLVM_VERSION} | ||
# ref: https://clickhouse.com/docs/en/development/build | ||
|
||
echo "Install Prerequisites" | ||
sudo apt-get install git cmake ccache python3 ninja-build nasm yasm gawk lsb-release wget software-properties-common gnupg | ||
|
||
echo "Install and Use the Clang compiler" | ||
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" | ||
|
||
echo "add CC and CXX to .bashrc" | ||
echo "export CC=clang-16" >> ~/.bashrc | ||
echo "export CXX=clang++-16" >> ~/.bashrc | ||
source ~/.bashrc |