From ee08930caebd28ff98ac4dfe0c802781706023d6 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Mon, 15 Aug 2022 23:02:30 +0200 Subject: [PATCH] add -DNDEBUG --- makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/makefile b/makefile index f67b0bc..7da1153 100644 --- a/makefile +++ b/makefile @@ -2,22 +2,25 @@ debug: test.cpp magyarsort.h g++ test.cpp -g -std=c++17 -o test.out release_coz: test.cpp magyarsort.h - g++ test.cpp -g1 -gdwarf-2 -std=c++17 -O2 -ldl -o test.out + g++ test.cpp -DNDEBUG -g1 -gdwarf-2 -std=c++17 -O2 -ldl -o test.out release_debug_sym: test.cpp magyarsort.h - g++ test.cpp -g -std=c++17 -O2 -o test.out + g++ test.cpp -DNDEBUG -g -std=c++17 -O2 -o test.out release: test.cpp magyarsort.h - g++ test.cpp -std=c++17 -O2 -o test.out + g++ test.cpp -DNDEBUG -std=c++17 -O2 -o test.out + +release_ypsu: ypsu.cpp magyarsort.h + g++ ypsu.cpp -DNDEBUG -std=c++17 -O2 -o ypsu.out release3: test.cpp magyarsort.h - g++ test.cpp -std=c++17 -O3 -o test.out + g++ test.cpp -DNDEBUG -std=c++17 -O3 -o test.out clang_release: test.cpp magyarsort.h - clang++ test.cpp -std=c++17 -O2 -o test.out + clang++ test.cpp -DNDEBUG -std=c++17 -O2 -o test.out clang_release3: test.cpp magyarsort.h - clang++ test.cpp -std=c++17 -O3 -o test.out + clang++ test.cpp -DNDEBUG -std=c++17 -O3 -o test.out clean: test.out rm test.out