Fix inverted resource dir condition

This commit is contained in:
Nikita Popov 2024-08-01 09:12:14 +00:00 committed by Timm Bäder
parent a9bfa39083
commit 1fc607d3b7

View file

@ -75,9 +75,9 @@ popd
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \ -DCLANG_BUILD_EXAMPLES:BOOL=OFF \
-DCLANG_REPOSITORY_STRING="%{?dist_vendor} %{version}-%{release}" \ -DCLANG_REPOSITORY_STRING="%{?dist_vendor} %{version}-%{release}" \
%if %{with compat_build} %if %{with compat_build}
-DCLANG_RESOURCE_DIR=../lib/clang/%{maj_ver} \
%else
-DCLANG_RESOURCE_DIR=../../../lib/clang/%{maj_ver} \ -DCLANG_RESOURCE_DIR=../../../lib/clang/%{maj_ver} \
%else
-DCLANG_RESOURCE_DIR=../lib/clang/%{maj_ver} \
%endif %endif
-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../clang-tools-extra \ -DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../clang-tools-extra \
-DCLANG_CONFIG_FILE_SYSTEM_DIR=%{_sysconfdir}/%{pkg_name_clang}/ \ -DCLANG_CONFIG_FILE_SYSTEM_DIR=%{_sysconfdir}/%{pkg_name_clang}/ \