Tweaking the build to turn on various debug options in GCC and enable -Wall -Werror on only our executable configs because turning them on globally causes most of the dependencies to fail. One thing to note is if you try to move the -D_GLIBCXX options from the project() to the executable() then you get segfaults inside the libc++ and other places. This is because the ABI changes when you enable these options, so you have to recompile _all_ dependencies with these options.

This commit is contained in:
Zed A. Shaw 2025-01-19 04:02:42 -05:00
parent 4c3049df14
commit ea3dd204a1
5 changed files with 22 additions and 19 deletions

View file

@ -10,7 +10,7 @@ build:
meson compile -j 10 -C builddir
release_build:
meson --wipe builddir -Dcpp_args=-DNDEBUG=1 --buildtype release
meson --wipe builddir -Db_ndebug=true --buildtype release
meson compile -j 10 -C builddir
debug_build: