mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01:00
debug flags
This commit is contained in:
parent
de6b2d27f3
commit
c66be3602a
@ -383,9 +383,10 @@ AS_IF([test "$ok" = "yes"], [
|
||||
AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[compile for debugging])], ok=$enableval, ok=no)
|
||||
AS_IF([test "$ok" = "yes"], [
|
||||
AS_IF([test "$GCC" = "yes"], [
|
||||
CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2"
|
||||
CFLAGS="$CFLAGS \
|
||||
-g -Wall -W -Wbad-function-cast -Wcast-qual -Warray-bounds -Wdisabled-optimization \
|
||||
-fsanitize=address -fno-omit-frame-pointer \
|
||||
-fsanitize=address -fno-omit-frame-pointer -fstack-protector-strong -Wformat -Werror=format-security \
|
||||
-Wpointer-arith -Wcast-align -Wpedantic -Wextra -Walloc-zero -Werror \
|
||||
"
|
||||
LDFLAGS="$LDFLAGS -fsanitize=address"
|
||||
|
Loading…
Reference in New Issue
Block a user