2017-01-30 17:46:23 +00:00
|
|
|
%__rustc %{_bindir}/rustc
|
2017-06-23 11:35:18 +00:00
|
|
|
%__rustdoc %{_bindir}/rustdoc
|
2017-01-30 17:46:23 +00:00
|
|
|
|
|
|
|
# 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}]
|