[PATCH] D138974: [CMake] Support injecting extra dependencies for perf-training
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 29 19:06:28 PST 2022
phosek created this revision.
phosek added a reviewer: smeenai.
Herald added a project: All.
phosek requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
It may be necessary to build additional targets before running
perf-training, the typical use case would be builtins and runtimes.
This change allows users to specify those dependencies as:
set(CLANG_PERF_TRAINING_DEPS builtins runtimes CACHE STRING "")
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138974
Files:
clang/utils/perf-training/CMakeLists.txt
Index: clang/utils/perf-training/CMakeLists.txt
===================================================================
--- clang/utils/perf-training/CMakeLists.txt
+++ clang/utils/perf-training/CMakeLists.txt
@@ -11,7 +11,7 @@
add_lit_testsuite(generate-profraw "Generating clang PGO data"
${CMAKE_CURRENT_BINARY_DIR}/pgo-data/
EXCLUDE_FROM_CHECK_ALL
- DEPENDS clang clear-profraw
+ DEPENDS clang clear-profraw ${CLANG_PERF_TRAINING_DEPS}
)
add_custom_target(clear-profraw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138974.478783.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221130/7979aead/attachment-0001.bin>
More information about the cfe-commits
mailing list