cmake is only needed for bundled llvm
This commit is contained in:
parent
9245da2d8a
commit
2e9a258bc1
@ -120,13 +120,12 @@ BuildRequires: zlib-devel
|
|||||||
BuildRequires: python2
|
BuildRequires: python2
|
||||||
BuildRequires: curl
|
BuildRequires: curl
|
||||||
|
|
||||||
|
%if %with bundled_llvm
|
||||||
%if 0%{?epel}
|
%if 0%{?epel}
|
||||||
BuildRequires: cmake3
|
BuildRequires: cmake3
|
||||||
%else
|
%else
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %with bundled_llvm
|
|
||||||
Provides: bundled(llvm) = 3.9
|
Provides: bundled(llvm) = 3.9
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm-devel >= 3.7
|
BuildRequires: llvm-devel >= 3.7
|
||||||
@ -268,7 +267,7 @@ sed -i.jemalloc -e '1i // ignore-test jemalloc is disabled' \
|
|||||||
src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs \
|
src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs \
|
||||||
src/test/run-pass/allocator-default.rs
|
src/test/run-pass/allocator-default.rs
|
||||||
|
|
||||||
%if 0%{?epel}
|
%if %{with bundled_llvm} && 0%{?epel}
|
||||||
mkdir -p cmake-bin
|
mkdir -p cmake-bin
|
||||||
ln -s /usr/bin/cmake3 cmake-bin/cmake
|
ln -s /usr/bin/cmake3 cmake-bin/cmake
|
||||||
%global cmake_path $PWD/cmake-bin
|
%global cmake_path $PWD/cmake-bin
|
||||||
|
Loading…
Reference in New Issue
Block a user