eldritch horrors
96a3683308
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. Upstream-PR: https://github.com/NixOS/nix/pull/10126 Original-Change-Id: |
||
---|---|---|
.. | ||
test-data | ||
characterization.hh | ||
common-protocol.cc | ||
derivation.cc | ||
derived-path.cc | ||
downstream-placeholder.cc | ||
local.mk | ||
machines.cc | ||
nar-info-disk-cache.cc | ||
outputs-spec.cc | ||
path.cc | ||
protocol.hh | ||
references.cc | ||
serve-protocol.cc | ||
worker-protocol.cc |