#33 Switch rustflags from `-g` to `-Cdebuginfo=2`
Merged 7 years ago by ignatenkobrain. Opened 7 years ago by jistone.
fedora-rust/ jistone/rust2rpm debuginfo  into  master

file modified
+1 -1
@@ -1,7 +1,7 @@ 

  %__rustc %{_bindir}/rustc

  

  # Enable optimization, debuginfo, and link hardening.

- %__global_rustflags -Copt-level=3 -g -Clink-arg=-Wl,-z,relro,-z,now

+ %__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

Since rustc doesn't allow -g and -Cdebuginfo options to mix, we need
to make sure we're consistent with the option crates may set in their
own [profile] debug settings. Cargo used to send -g for that, but
switched to -Cdebuginfo in version 0.17.0.

Fixes #32.

Pull-Request has been merged by ignatenkobrain

7 years ago
Metadata