From 442c13f9ff8a8c6739d649c5a68e065f2a727480 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Tue, 29 Nov 2022 17:32:06 -0800 Subject: [PATCH] [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 --- compiler-rt/test/profile/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler-rt/test/profile/CMakeLists.txt b/compiler-rt/test/profile/CMakeLists.txt index 51895f2..782be30 100644 --- a/compiler-rt/test/profile/CMakeLists.txt +++ b/compiler-rt/test/profile/CMakeLists.txt @@ -2,7 +2,8 @@ set(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) 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) -- 2.7.4