Skip to content

Commit

Permalink
add DEBUG_LIBSTDCXX option to GNU Make gcc for libstdc++ debug (AMReX…
Browse files Browse the repository at this point in the history
…-Codes#3945)

this catches bounds errors in the standard library containers
  • Loading branch information
zingale authored May 27, 2024
1 parent f474963 commit 28b0101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/GNUMake/comps/gnu.mak
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ else
endif
endif

ifeq ($(DEBUG_LIBSTDCXX),TRUE)
CPPFLAGS += -D_GLIBCXX_DEBUG
endif

ifeq ($(WARN_ALL),TRUE)
warning_flags = -Wall -Wextra -Wlogical-op -Wfloat-conversion -Wnull-dereference -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wmissing-include-dirs

Expand Down

0 comments on commit 28b0101

Please sign in to comment.