cmake is only needed for bundled llvm

This commit is contained in:
Josh Stone 2017-03-22 13:18:56 -07:00
parent 9245da2d8a
commit 2e9a258bc1
1 changed files with 2 additions and 3 deletions

View File

@ -120,13 +120,12 @@ BuildRequires: zlib-devel
BuildRequires: python2
BuildRequires: curl
%if %with bundled_llvm
%if 0%{?epel}
BuildRequires: cmake3
%else
BuildRequires: cmake
%endif
%if %with bundled_llvm
Provides: bundled(llvm) = 3.9
%else
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/run-pass/allocator-default.rs
%if 0%{?epel}
%if %{with bundled_llvm} && 0%{?epel}
mkdir -p cmake-bin
ln -s /usr/bin/cmake3 cmake-bin/cmake
%global cmake_path $PWD/cmake-bin