Instead of creating an extra clang-bolt binary and clang++-bolt symlink,
replace the original clang binary with BOLT-optimized one.
This fixes the issue with installing optimized binary as install-clang
target now copies the new version.
Paths
| Differential D139454
[CMake] Replace clang binary if using clang-bolt target ClosedPublic Authored by Amir on Dec 6 2022, 1:22 PM.
Details
Summary Instead of creating an extra clang-bolt binary and clang++-bolt symlink, This fixes the issue with installing optimized binary as install-clang
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 6 2022, 1:22 PM Amir added a child revision: D140565: [Clang][CMake] Set up distribution target for Clang-BOLT.Jan 24 2023, 1:35 PM This revision is now accepted and ready to land.Jan 27 2023, 12:02 AM Closed by commit rGe67f849001bb: [CMake] Replace clang binary if using clang-bolt target (authored by Amir). · Explain WhyJan 28 2023, 11:54 AM This revision was automatically updated to reflect the committed changes. Amir removed a child revision: D139496: [CMake] Add perf profiling for clang-bolt.Feb 7 2023, 3:06 PM
Revision Contents
Diff 493025 clang/CMakeLists.txt
clang/cmake/caches/BOLT-PGO.cmake
llvm/docs/AdvancedBuilds.rst
|
We should consider placing this and all other intermediate outputs in ${CMAKE_CURRENT_BINARY_DIR}.