mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
4d94209ec1
* 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.
15 lines
401 B
Bash
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
|