mirror of
https://github.com/NixOS/nix.git
synced 2025-12-22 17:01:08 +01:00
dev-shell: Set mesonBuildType to debugoptimized
Previously, we got debug symbols implicitly because we were using `separateDebugInfo = true`, which adds `-ggdb` to the compiler flags.
This commit is contained in:
parent
a6eb2e91b7
commit
fc81840a8e
2 changed files with 4 additions and 8 deletions
|
|
@ -6,14 +6,7 @@ Additionally, see [Testing Nix](./testing.md) for further instructions on how to
|
|||
|
||||
## Building Nix with Debug Symbols
|
||||
|
||||
In the development shell, set the `mesonBuildType` environment variable to `debug` before configuring the build:
|
||||
|
||||
```console
|
||||
[nix-shell]$ export mesonBuildType=debugoptimized
|
||||
```
|
||||
|
||||
Then, proceed to build Nix as described in [Building Nix](./building.md).
|
||||
This will build Nix with debug symbols, which are essential for effective debugging.
|
||||
In the development shell, `mesonBuildType` is set automatically to `debugoptimized`. This builds Nix with debug symbols, which are essential for effective debugging.
|
||||
|
||||
It is also possible to build without optimization for faster build:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue