diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-03-23 02:21:38 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-03-23 02:21:38 +0100 |
commit | 5764088e7abb48f78df2e6d7365710073f774e1a (patch) | |
tree | 837314e31807d94c801294befa48527ad2408170 /Makefile | |
parent | 1f40daf5c9684be57fc8aea719407b6efc9e010c (diff) | |
download | cpp-utils-5764088e7abb48f78df2e6d7365710073f774e1a.tar.gz cpp-utils-5764088e7abb48f78df2e6d7365710073f774e1a.zip |
make: allow passing c++std via STD variable
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 --------------------------------------------------------------------- |