38 |
|
|
39 |
# We can also choose to just use Rust's bundled LLVM, in case the system LLVM |
# We can also choose to just use Rust's bundled LLVM, in case the system LLVM |
40 |
# is insufficient. Rust currently requires LLVM 6.0+. |
# is insufficient. Rust currently requires LLVM 6.0+. |
41 |
%if 0%{?rhel} && !0%{?epel} |
%if 0%{?mageia} || 0%{?rhel} && !0%{?epel} |
42 |
|
# Bundled LLVM has underlinking issues: |
43 |
|
%global _disable_ld_no_undefined 1 |
44 |
%bcond_without bundled_llvm |
%bcond_without bundled_llvm |
45 |
%else |
%else |
46 |
%bcond_without bundled_llvm |
%bcond_with bundled_llvm |
47 |
%endif |
%endif |
48 |
|
|
49 |
# libgit2-sys expects to use its bundled library, which is sometimes just a |
# libgit2-sys expects to use its bundled library, which is sometimes just a |
486 |
|
|
487 |
|
|
488 |
%build |
%build |
489 |
|
export RUST_BACKTRACE=1 |
490 |
|
|
491 |
%if %without bundled_libgit2 |
%if %without bundled_libgit2 |
492 |
# convince libgit2-sys to use the distro libgit2 |
# convince libgit2-sys to use the distro libgit2 |