This file contains hidden or 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
clang-12 -xc -E -H -include stddef.h - </dev/null 2>&1 | head -n 20 |
This file contains hidden or 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
set -euxo pipefail | |
mkdir -p ~/tmp/clang12 && cd ~/tmp/clang12 | |
# Core toolchain + dev headers/libs (amd64 builds from focal) | |
base=https://archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-12 | |
wget -q ${base}/clang-12_12.0.1-19ubuntu3_amd64.deb |
This file contains hidden or 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
mkdir -p ~/tmp/clang12 && cd ~/tmp/clang12 | |
# Download focal’s 12.0.1 packages (adjust URLs for your mirror/arch) | |
wget https://archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-12/clang-12_12.0.1-19ubuntu3_amd64.deb | |
wget https://archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-12/libclang-12-dev_12.0.1-19ubuntu3_amd64.deb | |
wget https://archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-12/libclang1-12_12.0.1-19ubuntu3_amd64.deb |
This file contains hidden or 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
set -euo pipefail | |
VER=12.0.1 | |
ARCH=$(uname -m) | |
case "$ARCH" in | |
x86_64) PKG="clang+llvm-${VER}-x86_64-linux-gnu-ubuntu-20.04" ;; |
This file contains hidden or 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
# choose x86_64 or aarch64 as appropriate | |
VER=12.0.1 | |
PKG=clang+llvm-${VER}-x86_64-linux-gnu-ubuntu-20.04 | |
cd /tmp | |
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${VER}/${PKG}.tar.xz |