Skip to content

Commit 2541066

Browse files
RaisinTenmprobst
authored andcommitted
doc: fix build script for linux
1 parent e9075b5 commit 2541066

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,13 @@ See [node-glob](https://github.com/isaacs/node-glob) for globbing semantics.
7070

7171
For Linux, compile a statically linked MinSizeRel build:
7272

73-
cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_STATIC=true ..
73+
git clone --depth=1 https://github.com/llvm/llvm-project.git
74+
cd llvm-project
75+
mkdir build
76+
cd build
77+
cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_STATIC=true -DLLVM_ENABLE_PROJECTS=clang ../llvm
7478
ninja clang-format
79+
strip bin/clang-format
7580

7681
For Mac OS X, static linking is not required.
7782

0 commit comments

Comments
 (0)