compat_build: use llvm-config from the llvm compat build

The regular llvm build installs llvm-config-N to _bindir
The compat_build llvm build install llvm-config-N to pkg_bindir
Use the pkg_bindir one.

Fixes a build error
error: File not found: .../rpmbuild/BUILDROOT/
  clang13-13.0.0-5.fc36.x86_64/usr/lib64/llvm13/lib/*.so.*

Signed-off-by: Tom Rix <trix@redhat.com>
This commit is contained in:
Tom Rix 2021-12-15 05:38:00 -08:00
parent 993e8358ae
commit 715c4e65ee
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
%endif
%if %{with compat_build}
-DCLANG_BUILD_TOOLS:BOOL=OFF \
-DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver} \
-DLLVM_CONFIG:FILEPATH=%{pkg_bindir}/llvm-config-%{maj_ver}-%{__isa_bits} \
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
%else