[llvm] [clang] [CMake][PGO] Add option for using an external project to generate profile data (PR #78879)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 13:17:37 PST 2024


================
@@ -11,11 +15,11 @@ if(LLVM_BUILD_INSTRUMENTED)
   add_lit_testsuite(generate-profraw "Generating clang PGO data"
     ${CMAKE_CURRENT_BINARY_DIR}/pgo-data/
     EXCLUDE_FROM_CHECK_ALL
-    DEPENDS clang clear-profraw ${CLANG_PERF_TRAINING_DEPS}
+    DEPENDS clang clear-profraw ${CLANG_PGO_TRAINING_DEPS}
     )
 
   add_custom_target(clear-profraw
-    COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/perf-helper.py clean ${CMAKE_CURRENT_BINARY_DIR} profraw
+    COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/perf-helper.py clean ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR}/profiles/ profraw
----------------
aaupov wrote:

Where does this new path (`${CMAKE_BINARY_DIR}/profiles/`) come from?

https://github.com/llvm/llvm-project/pull/78879


More information about the llvm-commits mailing list