[llvm] [bolt][Docs] fix missing option in cmake of stage3 in OptimizingClang.md (PR #93684)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 06:35:43 PDT 2024


https://github.com/Itis-hard2name created https://github.com/llvm/llvm-project/pull/93684

Fixes #93681

>From 36499ee9f21377cc8c8e311a8d64384f8ac88974 Mon Sep 17 00:00:00 2001
From: Itis-hard2name <chenwei at xfusion.com>
Date: Wed, 29 May 2024 21:33:28 +0800
Subject: [PATCH] [bolt][Docs] fix missing option in cmake of stage3 in
 OptimizingClang.md

Fixes #93681
---
 bolt/docs/OptimizingClang.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bolt/docs/OptimizingClang.md b/bolt/docs/OptimizingClang.md
index ff7e71b6a76bc..685fcc2b738fa 100644
--- a/bolt/docs/OptimizingClang.md
+++ b/bolt/docs/OptimizingClang.md
@@ -49,6 +49,7 @@ $ cd ${TOPLEV}/stage3
 $ CPATH=${TOPLEV}/stage2-prof-use-lto/install/bin/
 $ cmake -G Ninja ${TOPLEV}/llvm -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_C_COMPILER=$CPATH/clang -DCMAKE_CXX_COMPILER=$CPATH/clang++ \
+    -DLLVM_ENABLE_PROJECTS="clang" \
     -DLLVM_USE_LINKER=lld -DCMAKE_INSTALL_PREFIX=${TOPLEV}/stage3/install
 $ perf record -e cycles:u -j any,u -- ninja clang
 ```



More information about the llvm-commits mailing list