repo/clang/build
2021-07-09 15:16:10 +02:00

7 lines
264 B
Text
Executable file

wget https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/clang-12.0.1.src.tar.xz
untar -xf clang-12.0.1.src.tar.xz
cd clang-12.0.1.src
cmake -S llvm -G "Unix Makefiles" -B build -DCMAKE_INSTALL_PREFIX="$1"/usr/bin
make
make install DESTDIR="$1"