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:
parent
4c3049df14
commit
ea3dd204a1
5 changed files with 22 additions and 19 deletions
2
Makefile
2
Makefile
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue