llvm / llvm/llvm-project

[clang][cmake-caches] The `stage2-check-clang` target not recognized when using the `clang/cmake/caches/BOLT-PGO.cmake` cache

Open
#202,072 2 comments 0 reactions 1 assignee Claimed by @aaupov View on GitHub
cmake
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Following the guidance on the https://llvm.org/docs/AdvancedBuilds.html#bolt page, I've managed to optimize clang (using BOLT+PGO). Unfortunately, I cannot verify the obtained binary with the usual round of clang tests (`check-clang`) as the `stage2-check-clang` target listed on the same page is not recognized. Neither is `stage2-check-all`. Copying the optimized `clang` binary to the `build/bin` directory (to overwrite the non-optimized binary obtained in previous stages) is not a solution: running usual `check-clang` (or `check-all`) relinks the `clang` binary, effectively restoring the non-optimized one for the time of testing. There must be another way. Is there something that I'm missing here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.