Skip to content

Commit 7c919b1

Browse files
committed
docs: create linux-build.sh reference for custom build
1 parent ec720a4 commit 7c919b1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/linux-build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo apt update -y
2+
sudo apt install -y git python3 g++ cmake ninja-build
3+
4+
# Replace llvmorg-18.1.8 with your desired version. Check the tags at https://github.com/llvm/llvm-project/tags
5+
git clone --depth 1 --branch llvmorg-18.1.8 https://github.com/llvm/llvm-project.git
6+
cd llvm-project
7+
8+
cmake -S llvm -B build-linux-x64 -G Ninja \
9+
-DLLVM_ENABLE_PROJECTS="clang" \
10+
-DCMAKE_BUILD_TYPE=MinSizeRel \
11+
12+
ninja -C build clang-format
13+
14+
# Check clang-format version
15+
build/bin/clang-format --version

0 commit comments

Comments
 (0)