Files
baldurk 4d94209ec1 Change fixed clang-format version to 15
* We commit statically linked x64 binaries for clang-format-15 for windows and
  linux to make the transition easier for anyone running a linux distro that
  doesn't yet support llvm 15, or in future for distros that drop support for
  it.
2023-09-05 11:02:08 +01:00

15 lines
401 B
Bash

#!/bin/bash
set -e
set -x
apt-get update
apt-get install -y git cmake python3 gcc g++
git clone --depth=5 https://github.com/llvm/llvm-project --branch llvmorg-15.0.7
mkdir llvm-build
cd llvm-build
cmake /llvm-project/llvm -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_EXE_LINKER_FLAGS=-static -DCMAKE_BUILD_TYPE=Release
make -j8 clang-format
strip --strip-unneeded bin/clang-format
cp bin/clang-format /out