From 8f55e5cf2654ea8ada0116cd1b3e43365996c23c Mon Sep 17 00:00:00 2001 From: shunlir Date: Wed, 1 Apr 2020 14:54:46 +0800 Subject: [PATCH] Add '-DLLVM_ENABLE_PROJECTS=clang' in Build Clang+LLVM from the git monorepo section --- Build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build.md b/Build.md index e09f3a1..d846d4b 100644 --- a/Build.md +++ b/Build.md @@ -296,7 +296,7 @@ ninja -C Release git clone https://github.com/llvm/llvm-project.git cd llvm-project -cmake -Hllvm -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 +cmake -Hllvm -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS=clang ninja -C Release clangFormat clangFrontendTool clangIndex clangTooling clang # built Release/bin/clang ``` @@ -345,7 +345,7 @@ Similar to the instructions to build Clang+LLVM from the git monorepo: # Download "LLVM source code" and rename the extracted directory to llvm # Download "Clang source code" and rename the extracted directory to llvm/tools/clang cd llvm -cmake -H. -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 +cmake -H. -BRelease -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS=clang ninja -C Release clangFormat clangFrontendTool clangIndex clangTooling clang # built Release/bin/clang ```