[PATCH] D139454: [CMake] Replace clang binary if using clang-bolt target
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 01:16:41 PST 2023
phosek added inline comments.
================
Comment at: clang/CMakeLists.txt:959
)
add_custom_command(OUTPUT ${CLANG_OPTIMIZED}
DEPENDS clang-bolt-profile
----------------
We should consider placing this and all other intermediate outputs in `${CMAKE_CURRENT_BINARY_DIR}`.
================
Comment at: clang/CMakeLists.txt:966
-split-all-cold -split-eh -dyno-stats -icf=1 -use-gnu-stack
+ COMMAND ${CMAKE_COMMAND} -E rename ${CLANG_OPTIMIZED} ${CLANG_PATH}-${CLANG_VERSION_MAJOR}
COMMENT "Optimizing Clang with BOLT"
----------------
This makes assumptions about the name of the binary which is chosen by CMake and can in theory change. Can you try to use generator expression instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139454/new/
https://reviews.llvm.org/D139454
More information about the cfe-commits
mailing list