Skip to content

Commit

Permalink
Use C++14
Browse files Browse the repository at this point in the history
C++11 was deprecated in Verilator
  • Loading branch information
kiryk committed May 22, 2024
1 parent 67091e8 commit 7c19aa4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ defines += ${RV_ROOT}/design/include/el2_def.sv
defines += $(BUILD_DIR)/el2_pdef.vh
includes = -I${BUILD_DIR}

# CFLAGS for verilator generated Makefiles. Without -std=c++11 it
# complains for `auto` variables
CFLAGS += -std=c++11
# Verilator supports only C++14 and newer
CFLAGS += -std=c++14

# Optimization for better performance; alternative is nothing for
# slower runtime (faster compiles) -O2 for faster runtime (slower
Expand Down

0 comments on commit 7c19aa4

Please sign in to comment.