rust2rpm/data/macros.rust
Igor Gnatenko ecc850755e
macros: Use %{build_rustflags} convention
But keep %__global_rustflags around for compatibility.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-04-23 21:14:51 +02:00

17 lines
417 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
}
%__global_rustflags %{build_rustflags}
%__global_rustflags_toml [%{lua:
for arg in string.gmatch(rpm.expand("%{build_rustflags}"), "%S+") do
print('"' .. arg .. '", ')
end}]