Skip to content

Commit 6146e5c

Browse files
committed
feat!: bump C++ standard to C++23
1 parent 6cca6fa commit 6146e5c

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
1616
IndentCaseLabels: true
1717
IndentWidth: 4
1818
SpaceAfterCStyleCast: true
19-
Standard: c++20
19+
Standard: Latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ brew install cartesi-machine
116116

117117
##### System Requirements
118118

119-
- C++ Compiler with support for C++20 (tested with GCC >= 11.x and Clang >= 14.x).
119+
- C++ Compiler with support for C++23 (tested with GCC >= 14.x and Clang >= 19.x).
120120
- GNU Make >= 3.81
121121
- Boost >= 1.83
122122
- Lua >= 5.4.6 (optional, required for scripting support and interactive terminal)

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ else
311311
DEFS+=-DNO_THREADS
312312
endif
313313

314-
CXXFLAGS+=$(OPTFLAGS) -std=gnu++20 -fvisibility=hidden -MMD $(PICCFLAGS) $(CC_MARCH) $(INCS) $(GCFLAGS) $(UBCFLAGS) $(DEFS) $(CXX_WARNS)
314+
CXXFLAGS+=$(OPTFLAGS) -std=gnu++23 -fvisibility=hidden -MMD $(PICCFLAGS) $(CC_MARCH) $(INCS) $(GCFLAGS) $(UBCFLAGS) $(DEFS) $(CXX_WARNS)
315315
CFLAGS+=$(OPTFLAGS) -std=gnu99 -fvisibility=hidden -MMD $(PICCFLAGS) $(CC_MARCH) $(INCS) $(GCFLAGS) $(UBCFLAGS) $(DEFS) $(C_WARNS)
316316
LDFLAGS+=$(UBLDFLAGS)
317317

tests/machine/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Cartesi Machine Tests is a repository containing RISC-V testing code.
66

77
### Requirements
88

9-
- RISCV64 C/C++ Compiler with support for C++20 (tested with GCC >= 8+).
9+
- RISCV64 C/C++ Compiler with support for C++23 (tested with GCC >= 14.x).
1010
- GNU Make >= 3.81
1111

1212
### Build

tests/misc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ CLANG_FORMAT_FILES:=$(wildcard *.cpp) $(wildcard *.h)
9898
INCS=-I../../src -I../../third-party/nlohmann-json -I../../third-party/downloads
9999
WARNS=-Wall -Wpedantic $(BOOST_INC)
100100

101-
CXXFLAGS+=-O2 -g -std=gnu++20 -fopenmp -fvisibility=hidden $(INCS) $(UBFLAGS) $(WARNS)
101+
CXXFLAGS+=-O2 -g -std=gnu++23 -fopenmp -fvisibility=hidden $(INCS) $(UBFLAGS) $(WARNS)
102102

103103
ifeq ($(slirp),yes)
104104
LIBCARTESI_LIBS+=$(SLIRP_LIB)

uarch/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ HOST_CXX := g++
2121
HOST_CC := gcc
2222
endif
2323
HOST_CFLAGS := -I$(EMULATOR_SRC_DIR)
24-
HOST_CXXFLAGS := -std=c++20
24+
HOST_CXXFLAGS := -std=c++23
2525

2626
CC := $(TOOLCHAIN_PREFIX)gcc
2727
LD := $(TOOLCHAIN_PREFIX)ld
@@ -58,7 +58,7 @@ CFLAGS := -march=rv64i -mabi=lp64 -Wl,--gc-sections $(OPTFLAGS) $(UBFLAGS) $(WAR
5858
$(UARCH_DEFS) \
5959
$(TOOLCHAIN_INCS)
6060

61-
CXXFLAGS := -std=c++20 -fno-rtti \
61+
CXXFLAGS := -std=c++23 -fno-rtti \
6262
-fno-threadsafe-statics \
6363
-fno-use-cxa-atexit
6464

0 commit comments

Comments
 (0)