nix-super/tests/unit
Jade Lovelace 2625e9fb0a Ban building Nix with NDEBUG
When reviewing old PRs, I found that #9997 adds some code to ensure one
particular assert is always present. But, removing asserts isn't
something we do in our own release builds either in the flake here or in
nixpkgs, and is plainly a bad idea that increases support burden,
especially if other distros make bad choices of build flags in their Nix
packaging.

For context, the assert macro in the C standard is defined to do nothing
if NDEBUG is set.

There is no way in our build system to set -DNDEBUG without manually
adding it to CFLAGS, so this is simply a configuration we do not use.
Let's ban it at compile time.

I put this preprocessor directive in src/libutil.cc because it is not
obvious where else to put it, and it seems like the most logical file
since you are not getting a usable nix without it.
2024-03-02 11:22:46 -08:00
..
libexpr Fix extraction of name for defaultPackage URLs 2024-02-27 07:53:05 +01:00
libexpr-support Only link with -pthread on Unix 2024-01-10 20:38:39 -05:00
libstore Ban building Nix with NDEBUG 2024-03-02 11:22:46 -08:00
libstore-support test: Generate distinct path names 2024-01-31 18:35:19 +01:00
libutil Support symlinks properly with git-hashing experimental feature 2024-02-28 12:24:45 -05:00
libutil-support test: Generate distinct hashes 2024-01-31 18:35:19 +01:00