50 |
%bcond_with bundled_llvm |
%bcond_with bundled_llvm |
51 |
%endif |
%endif |
52 |
|
|
53 |
|
%ifarch s390 s390x %{arm} %ix86 |
54 |
|
# Decrease debuginfo verbosity to reduce memory consumption during final library linking |
55 |
|
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') |
56 |
|
%endif |
57 |
|
|
58 |
# 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 |
59 |
# snapshot of libgit2's master branch. This can mean the FFI declarations |
# snapshot of libgit2's master branch. This can mean the FFI declarations |
60 |
# won't match our released libgit2.so, e.g. having changed struct fields. |
# won't match our released libgit2.so, e.g. having changed struct fields. |
521 |
%ifarch %{arm} %{ix86} s390x |
%ifarch %{arm} %{ix86} s390x |
522 |
# full debuginfo is exhausting memory; just do libstd for now |
# full debuginfo is exhausting memory; just do libstd for now |
523 |
# https://github.com/rust-lang/rust/issues/45854 |
# https://github.com/rust-lang/rust/issues/45854 |
524 |
%if (0%{?fedora} && 0%{?fedora} < 27) || (0%{?rhel} && 0%{?rhel} <= 7) |
%if (0%{?mageia} && 0%{?mageia} < 27) || (0%{?rhel} && 0%{?rhel} <= 7) |
525 |
# Older rpmbuild didn't work with partial debuginfo coverage. |
# Older rpmbuild didn't work with partial debuginfo coverage. |
526 |
%global debug_package %{nil} |
%global debug_package %{nil} |
527 |
%define enable_debuginfo --debuginfo-level=0 |
%define enable_debuginfo --debuginfo-level=0 |