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