mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 23:21:15 -03:00
This appends "-g" to RUSTFLAGS if the cmake build type is debug or RelWithDebInfo. However, these are already mapped to cargo profiles that enable these things, see https://doc.rust-lang.org/cargo/reference/profiles.html: > The debug setting controls the -C debuginfo flag which controls the amount of debug information included in the compiled binary. (`rustc -g` is equivalent to `debuginfo=2`) By setting $RUSTFLAGS in cmake, we bake it into the generated makefile (/ninja thing), which is surprising. See #12165