2017-01-30 17:46:23 +00:00
|
|
|
%__rustc %{_bindir}/rustc
|
|
|
|
|
|
|
|
# Enable optimization, debuginfo, and link hardening.
|
2017-03-30 17:32:00 +00:00
|
|
|
%__global_rustflags -Copt-level=3 -Cdebuginfo=2 -Clink-arg=-Wl,-z,relro,-z,now
|
2017-01-30 17:46:23 +00:00
|
|
|
|
|
|
|
%__global_rustflags_toml [%{lua:
|
|
|
|
for arg in string.gmatch(rpm.expand("%{__global_rustflags}"), "%S+") do
|
|
|
|
print('"' .. arg .. '", ')
|
|
|
|
end}]
|