From a0317cdaa47856d4038f711f6f4c33878fdb7378 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Tue, 21 Sep 2021 17:35:59 +0200 Subject: [PATCH] Added a new compiler flag --- Makefile | 1 + tests.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e095f18..afbae8b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CXX= clang++ CXXFLAGS= --std=c++20 -O0 -g -pthread -DGP_TESTS -DFUZZ_STRENGTH=100 -DNO_BENCH=1 -pedantic \ -fprofile-instr-generate -fcoverage-mapping -Wno-unknown-attributes -fno-omit-frame-pointer \ + -DCATCH_EXCEPTIONS=1 # -fsanitize=address -fsanitize-blacklist=blacklist.txt diff --git a/tests.cpp b/tests.cpp index 706b1b2..7bddff7 100644 --- a/tests.cpp +++ b/tests.cpp @@ -36,7 +36,9 @@ void print_logs() { } } +#ifndef CATCH_EXCEPTIONS #define CATCH_EXCEPTIONS 0 +#endif std::vector> tests;