From 52d4cbeb642df2689fe4f76a65100a32099787b2 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 19 Sep 2023 00:08:07 +0300 Subject: [PATCH] build: improve development build flags Use c++23 for better warnings / checks (but only for local 'hacker' builds) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 55546fe6..22624395 100644 --- a/Makefile +++ b/Makefile @@ -35,13 +35,13 @@ endif # when MU_HACKER is set, do a debug build # MU_HACKER is for djcb & compatible developers -# note that mu uses C++17, we only pass C++20 here +# note that mu uses C++17, we only pass C++23 here # for the better error messages (esp. for fmt). ifneq (${MU_HACKER},) MESON_FLAGS:=$(MESON_FLAGS) '-Dbuildtype=debug' \ '-Db_sanitize=address' \ '-Dreadline=enabled' \ - '-Dcpp_std=c++20' + '-Dcpp_std=c++23' endif .PHONY: all build-valgrind