build: let meson add compiler flags for libstdc++ assertions
We have manually enabled libstdc++ assertions sincecl/797
. Meson 1.4.0 (the minimum version we mandate) enables this by default, so we can remove the enabling compiler flag from the list of project arguments. With this patch, `-D_GLIBCXX_ASSERTIONS=1` is still present in the compile command logs when building with both gccStdenv and clangStdenv. See: https://gerrit.lix.systems/c/lix/+/797 See: https://mesonbuild.com/Release-notes-for-1-4-0.html#ndebug-setting-now-controls-c-stdlib-assertions Change-Id:I53483fadfe5cbd11ba35544b437d3a9ee8031631
This commit is contained in:
parent
b86863d935
commit
4780dd6bc4
|
@ -493,12 +493,6 @@ add_project_arguments(
|
||||||
'-Wdeprecated-copy',
|
'-Wdeprecated-copy',
|
||||||
'-Wignored-qualifiers',
|
'-Wignored-qualifiers',
|
||||||
'-Werror=suggest-override',
|
'-Werror=suggest-override',
|
||||||
# Enable assertions in libstdc++ by default. Harmless on libc++. Benchmarked
|
|
||||||
# at ~1% overhead in `nix search`.
|
|
||||||
#
|
|
||||||
# FIXME: remove when we get meson 1.4.0 which will default this to on for us:
|
|
||||||
# https://mesonbuild.com/Release-notes-for-1-4-0.html#ndebug-setting-now-controls-c-stdlib-assertions
|
|
||||||
'-D_GLIBCXX_ASSERTIONS=1',
|
|
||||||
language : 'cpp',
|
language : 'cpp',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue