ecc850755e
But keep %__global_rustflags around for compatibility. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
17 lines
417 B
Text
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}]
|