rust2rpm/data/macros.rust
Igor Gnatenko a6bde5599a
Pass --cap-lints=warn to the RUSTFLAGS
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>
2019-12-03 19:11:20 +01:00

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}]