From a8e3879e3e87ad7ee09b60d179beb41ce650caca Mon Sep 17 00:00:00 2001 From: Tim Creech Date: Mon, 16 Dec 2024 11:13:37 -0500 Subject: [PATCH] Add llvm-profgen to the list of toolchain tools This tool is used for SPGO and is invoked directly by users as described in the Clang User's Manual[^1]. This change will include llvm-profgen in installations configured with LLVM_INSTALL_TOOLCHAIN_ONLY, such as those provided by LLVM's executable Windows installers. This is useful now that LLVM can perform SPGO on Windows. [^1]: https://clang.llvm.org/docs/UsersManual.html#using-sampling-profilers --- llvm/cmake/modules/AddLLVM.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 6cf0ee1a54dbd..54a54db338e69 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -1446,6 +1446,7 @@ if(NOT LLVM_TOOLCHAIN_TOOLS) llvm-strings llvm-strip llvm-profdata + llvm-profgen llvm-symbolizer # symlink version of some of above tools that are enabled by # LLVM_INSTALL_BINUTILS_SYMLINKS.