diff --git a/D138472.diff b/D138472.diff index 729d74c..5d3cd60 100644 --- a/D138472.diff +++ b/D138472.diff @@ -1,4 +1,4 @@ -From 04ee57212326f872b6f9402eff438220396ca763 Mon Sep 17 00:00:00 2001 +From 04b642c646048dd9df652eba05d45beaa13bc895 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 23 Jan 2023 13:14:17 +0000 Subject: [PATCH] Rebased D138472 @@ -8,7 +8,7 @@ Subject: [PATCH] Rebased D138472 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt -index 090cfa352078..69652733e2f2 100644 +index 090cfa352078..f87838776c32 100644 --- a/clang/CMakeLists.txt +++ b/clang/CMakeLists.txt @@ -118,12 +118,11 @@ if(CLANG_BUILT_STANDALONE) @@ -23,7 +23,7 @@ index 090cfa352078..69652733e2f2 100644 - endif() + endif() + -+ find_package(LLVMGTest) ++ find_package(LLVMGTest HINTS "${LLVM_CMAKE_DIR}") + if (NOT TARGET llvm_gtest) + message(FATAL_ERROR "llvm-gtest not found. Please install llvm-gtest or disable tests with -DLLVM_INCLUDE_TESTS=OFF") endif() diff --git a/clang.spec b/clang.spec index 83d057f..dd32292 100644 --- a/clang.spec +++ b/clang.spec @@ -341,6 +341,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py -DLLVM_EXTERNAL_LIT=%{_bindir}/lit \ -DLLVM_LIT_ARGS="-vv" \ -DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \ + -DLLVM_CMAKE_DIR=/usr/%{_lib}/cmake/llvm \ %if 0%{?__isa_bits} == 64 -DLLVM_LIBDIR_SUFFIX=64 \ %else