From 5764088e7abb48f78df2e6d7365710073f774e1a Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 23 Mar 2024 02:21:38 +0100 Subject: make: allow passing c++std via STD variable --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cdf10eb..db0e8ab 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,8 @@ RUNS = $(TEST:%=run/%) DEPS_GEN = -MMD SANITIZER = -fsanitize=address -fsanitize=undefined -fsanitize=leak -fno-omit-frame-pointer -CXXFLAGS = -Og -g -Wall -Wextra -Werror -I. -std=c++14 $(DEPS_GEN) $(SANITIZER) +STD ?= 14 +CXXFLAGS = -Og -g -Wall -Wextra -Werror -I. -std=c++$(STD) $(DEPS_GEN) $(SANITIZER) LDFLAGS = $(SANITIZER) # -- RULES --------------------------------------------------------------------- -- cgit v1.2.3