default.conf: enable _GLIBCXX_ASSERTIONS

these have a slight runtime hit (like fortify-source), but help find
bugs early, by making programs crash on invariants that would corrupt
memory and lead to hard to debug crashes/bugs later.
This commit is contained in:
psykose 2023-05-06 19:02:47 +00:00 committed by alice
parent 861e21fab2
commit 44c933da5d
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
export CFLAGS="-Os -Wformat -Werror=format-security"
export CXXFLAGS="-Os -Wformat -Werror=format-security"
export CXXFLAGS="-Os -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1"
export LDFLAGS="-Wl,--as-needed,-O1,--sort-common"
export GOFLAGS="-buildmode=pie -modcacherw -trimpath -buildvcs=false"
# Do note that these should work with at least GDC and LDC