We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1383e commit 5efebc0Copy full SHA for 5efebc0
depends/hosts/linux.mk
@@ -13,7 +13,11 @@ linux_release_CXXFLAGS=$(linux_release_CFLAGS)
13
linux_debug_CFLAGS=-O1 -g
14
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)
15
16
-linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_ENABLE_DEBUG_MODE=1
+# https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html
17
+linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
18
+
19
+# https://libcxx.llvm.org/Hardening.html
20
+linux_debug_CPPFLAGS+=-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG
21
22
ifeq (86,$(findstring 86,$(build_arch)))
23
i686_linux_CC=gcc -m32
0 commit comments