a6bde5599a
It is simply impossible to fight against people putting #![deny(warnings)] into the code… Closes: https://pagure.io/fedora-rust/rust2rpm/issue/98 Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
18 lines
436 B
Text
18 lines
436 B
Text
%__rustc %{_bindir}/rustc
|
|
%__rustdoc %{_bindir}/rustdoc
|
|
|
|
# Enable optimization, debuginfo, and link hardening.
|
|
%build_rustflags %{shrink:
|
|
-Copt-level=3
|
|
-Cdebuginfo=2
|
|
-Clink-arg=-Wl,-z,relro,-z,now
|
|
-Ccodegen-units=1
|
|
--cap-lints=warn
|
|
}
|
|
|
|
%__global_rustflags %{build_rustflags}
|
|
|
|
%__global_rustflags_toml [%{lua:
|
|
for arg in string.gmatch(rpm.expand("%{build_rustflags}"), "%S+") do
|
|
print('"' .. arg .. '", ')
|
|
end}]
|