serpent-os / moss

The safe, fast and sane package manager for Linux
https://serpentos.com
71 stars 9 forks source link

boulder: Add RUSTFLAGS, enable frame pointers by default #255

Closed ReillyBrogan closed 3 weeks ago

ReillyBrogan commented 3 weeks ago

From the Rust docs:

A space-separated list of custom flags to pass to all compiler invocations that Cargo performs. In contrast with cargo rustc, this is useful for passing a flag to all compiler instances. (...) This string is split by whitespace

And define the default for that flag to be -Cforce-frame-pointers, which from the Rust docs force enables frame pointers. Note that setting this flag to =false or leaving it off does not necessarily mean that frame pointers will be removed as they can still be enabled by other means.

Though it is unlikely to be needed setting frame-pointer: false in the tuning section of a recipe will remove this flag.