From 9a88eef781b16fd857927e97a9a22f131b55c363 Mon Sep 17 00:00:00 2001
From: Jan200101 <sentrycraft123@gmail.com>
Date: Tue, 11 Apr 2023 19:15:25 +0200
Subject: [PATCH] Move LLVM_CMAKE_DIR to compat builds

partially reverts 1903e547f9943cfe4e64d9d0e364897b24c8f6f4
---
 clang.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang.spec b/clang.spec
index 501db06..0c5d51b 100644
--- a/clang.spec
+++ b/clang.spec
@@ -346,6 +346,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
 	-DCLANG_BUILD_TOOLS:BOOL=OFF \
 	-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
 	-DCLANG_INCLUDE_TESTS:BOOL=OFF \
+	-DLLVM_CMAKE_DIR=%{install_libdir}/cmake/llvm \
 %else
 	-DCLANG_INCLUDE_TESTS:BOOL=ON \
 	-DLLVM_BUILD_UTILS:BOOL=ON \
@@ -353,7 +354,6 @@ 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