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:
parent
993e8358ae
commit
715c4e65ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user