clang: fixes for build
This commit is contained in:
parent
b93ace5bdb
commit
ccee982634
@ -14,7 +14,7 @@ BuildRequires: llvm-devel = %{version}
|
|||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: llvm-static = %{version}
|
BuildRequires: llvm-static = %{version}
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: ncurses-devel
|
||||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
# clang requires gcc, clang++ requires libstdc++-devel
|
# clang requires gcc, clang++ requires libstdc++-devel
|
||||||
@ -79,6 +79,11 @@ cd _build
|
|||||||
-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
|
-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
|
||||||
\
|
\
|
||||||
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
||||||
|
%if 0%{?__isa_bits} == 64
|
||||||
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||||
|
%else
|
||||||
|
-DLLVM_LIBDIR_SUFFIX= \
|
||||||
|
%endif
|
||||||
-DLIB_SUFFIX=
|
-DLIB_SUFFIX=
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -118,8 +123,8 @@ rm -vf %{buildroot}%{_datadir}/clang/clang-format-diff.py*
|
|||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/clang/
|
%{_includedir}/clang/
|
||||||
%{_includedir}/clang-c/
|
%{_includedir}/clang-c/
|
||||||
|
%{_libdir}/cmake/
|
||||||
%dir %{_datadir}/clang/
|
%dir %{_datadir}/clang/
|
||||||
%{_datadir}/clang/cmake/
|
|
||||||
|
|
||||||
%files analyzer
|
%files analyzer
|
||||||
%{_bindir}/scan-view
|
%{_bindir}/scan-view
|
||||||
|
Loading…
Reference in New Issue
Block a user