Skip to content

Commit 7e92355

Browse files
committed
new c++ version in clang
1 parent 5e90c16 commit 7e92355

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Makefile-variables

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ COMPILER_VERSION := $(shell $(CXX) --version | grep version | grep -o -m 1 "[0-
2929
COMPILER_VERSION_NUMBER := $(shell echo $(COMPILER_VERSION) | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/')
3030
CLANG_13_OR_MORE := $(shell expr $(COMPILER_VERSION_NUMBER) \>= 130106)
3131
ifneq ($(CLANG_13_OR_MORE),0)
32-
# supported: c++11, c++14, c++17, c++20
33-
# future: c++2b
34-
CXXFLAGS ?= --std=c++20 -O3 -Iinclude $(shell pkg-config --cflags getargv)
32+
# supported: c++11, c++14, c++17, c++20, c++23
33+
# future: c++2c
34+
CXXFLAGS ?= --std=c++23 -O3 -Iinclude $(shell pkg-config --cflags getargv)
3535
else
3636
CXXFLAGS ?= --std=c++17 -O3 -Iinclude $(shell pkg-config --cflags getargv)
3737
endif

test/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ COMPILER_VERSION := $(shell $(CXX) --version | grep version | grep -o -m 1 "[0-
1414
COMPILER_VERSION_NUMBER := $(shell echo $(COMPILER_VERSION) | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/')
1515
CLANG_13_OR_MORE := $(shell expr $(COMPILER_VERSION_NUMBER) \>= 130106)
1616
ifneq ($(CLANG_13_OR_MORE),0)
17-
CXXFLAGS := --std=c++20
18-
# supported: c++11, c++14, c++17, c++20
19-
# future: c++2b
17+
CXXFLAGS := --std=c++23
18+
# supported: c++11, c++14, c++17, c++20, c++23
19+
# future: c++2c
2020
else
2121
CXXFLAGS := --std=c++17
2222
endif

0 commit comments

Comments
 (0)