diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-04-19 20:43:24 +0100 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-04-19 20:43:24 +0100 |
| commit | d311c0726e5864bd01f30f3cbefc9a2bb3ad2159 (patch) | |
| tree | d803d2d008d52efd962168e5c76e96f2f7e4b36e /src/Makefile.am | |
| parent | 2aa179fdd5033148c885056ea4953eae6426a5b3 (diff) | |
Changed build options for debug and release
Diffstat (limited to 'src/Makefile.am')
| -rw-r--r-- | src/Makefile.am | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b78467c..38951f6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,4 +7,13 @@ blc_SOURCES = \ AM_CXXFLAGS = \ -std=c++17 \ - -I$(top_srcdir)/include + -I$(top_srcdir)/include \ + -Wall \ + -Wextra \ + -Wpedantic + +if DEBUG +AM_CXXFLAGS += -O0 -g3 -fsanitize=address,undefined -fno-omit-frame-pointer +else +AM_CXXFLAGS += -O2 -DNDEBUG +endif |
