[compiler-rt] Fix check-profile dependencies
It relies on InstrProfData.inc being in the compiler resource directory.
Reviewed By: ellis
Differential Revision: https://reviews.llvm.org/D138969
GitOrigin-RevId: 442c13f9ff8a8c6739d649c5a68e065f2a727480
diff --git a/test/profile/CMakeLists.txt b/test/profile/CMakeLists.txt
index 51895f2..782be30 100644
--- a/test/profile/CMakeLists.txt
+++ b/test/profile/CMakeLists.txt
@@ -2,7 +2,8 @@
set(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(PROFILE_TESTSUITES)
-set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
+# Profile tests rely on the compiler-rt-headers being in the resource directory
+set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS} compiler-rt-headers)
if(NOT COMPILER_RT_STANDALONE_BUILD)
list(APPEND PROFILE_TEST_DEPS profile llvm-profdata llvm-cov)
if(NOT APPLE AND COMPILER_RT_HAS_LLD AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)