[PATCH] D136023: [CMake] Disable BOLT instrumentation of Clang on instrumented build
Amir Ayupov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 19 18:24:15 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG076240fa0624: [CMake] Disable BOLT instrumentation of Clang on instrumented build (authored by Amir).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136023/new/
https://reviews.llvm.org/D136023
Files:
clang/CMakeLists.txt
clang/cmake/caches/BOLT-PGO.cmake
Index: clang/cmake/caches/BOLT-PGO.cmake
===================================================================
--- /dev/null
+++ clang/cmake/caches/BOLT-PGO.cmake
@@ -0,0 +1,11 @@
+set(LLVM_ENABLE_PROJECTS "bolt;clang;lld" CACHE STRING "")
+
+set(CLANG_BOOTSTRAP_TARGETS
+ stage2-clang++-bolt
+ CACHE STRING "")
+set(BOOTSTRAP_CLANG_BOOTSTRAP_TARGETS
+ clang++-bolt
+ CACHE STRING "")
+
+set(PGO_BUILD_CONFIGURATION ${CMAKE_CURRENT_LIST_DIR}/BOLT.cmake CACHE STRING "")
+include(${CMAKE_CURRENT_LIST_DIR}/PGO.cmake)
Index: clang/CMakeLists.txt
===================================================================
--- clang/CMakeLists.txt
+++ clang/CMakeLists.txt
@@ -868,7 +868,7 @@
endforeach()
endif()
-if (CLANG_BOLT_INSTRUMENT)
+if (CLANG_BOLT_INSTRUMENT AND NOT LLVM_BUILD_INSTRUMENTED)
set(CLANG_PATH ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang)
set(CLANGXX_PATH ${CLANG_PATH}++)
set(CLANG_INSTRUMENTED ${CLANG_PATH}-bolt.inst)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136023.469099.patch
Type: text/x-patch
Size: 942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221020/c90b1a7b/attachment.bin>
More information about the cfe-commits
mailing list