mirror of https://github.com/lowRISC/ibex.git
[c++] Upgrade to C++17 Support
This change updates the C++ language version to C++17, project wide. Signed-off-by: Collin MacDonald <cmacd@google.com>
This commit is contained in:
parent
0a5e2fc444
commit
e5b8d05fea
|
@ -17,7 +17,7 @@ OBJS := $(patsubst %.$(SRCEXT),$(OBJDIR)/%.o,$(SRCS))
|
|||
|
||||
DEBUG = -g
|
||||
INCLUDES = -I./env -I./rst_driver -I./reg_driver -I./model
|
||||
CFLAGS = -std=c++14 -m64 -fPIC -Wall -pedantic $(DEBUG) $(INCLUDES)
|
||||
CFLAGS = -std=c++17 -m64 -fPIC -Wall -pedantic $(DEBUG) $(INCLUDES)
|
||||
LDFLAGS = -shared
|
||||
|
||||
CC = $(CXX)
|
||||
|
|
|
@ -121,7 +121,7 @@ targets:
|
|||
- '--trace-structs'
|
||||
- '--trace-params'
|
||||
- '--trace-max-array 1024'
|
||||
- '-CFLAGS "-std=c++14 -Wall -DTOPLEVEL_NAME=tb_cs_registers -DVM_TRACE_FMT_FST -g"'
|
||||
- '-CFLAGS "-std=c++17 -Wall -DTOPLEVEL_NAME=tb_cs_registers -DVM_TRACE_FMT_FST -g"'
|
||||
- '-LDFLAGS "-pthread -lutil -lelf"'
|
||||
- "-Wall"
|
||||
- '-Wno-fatal' # Do not fail on (style) issues, only warn about them.
|
||||
|
|
|
@ -161,6 +161,6 @@ targets:
|
|||
- '--trace-structs'
|
||||
- '--trace-params'
|
||||
- '--trace-max-array 1024'
|
||||
- '-CFLAGS "-std=c++14 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_riscv_compliance -g"'
|
||||
- '-CFLAGS "-std=c++17 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_riscv_compliance -g"'
|
||||
- '-LDFLAGS "-pthread -lutil -lelf"'
|
||||
- "-Wall"
|
||||
|
|
|
@ -179,7 +179,7 @@ targets:
|
|||
- '--trace-structs'
|
||||
- '--trace-params'
|
||||
- '--trace-max-array 1024'
|
||||
- '-CFLAGS "-std=c++14 -Wall -DVL_USER_STOP -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g `pkg-config --cflags riscv-riscv riscv-disasm riscv-fdt`"'
|
||||
- '-CFLAGS "-std=c++17 -Wall -DVL_USER_STOP -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g `pkg-config --cflags riscv-riscv riscv-disasm riscv-fdt`"'
|
||||
- '-LDFLAGS "-pthread -lutil -lelf `pkg-config --libs riscv-riscv riscv-disasm riscv-fdt`"'
|
||||
- "-Wall"
|
||||
# RAM primitives wider than 64bit (required for ECC) fail to build in
|
||||
|
|
|
@ -175,7 +175,7 @@ targets:
|
|||
- '--trace-structs'
|
||||
- '--trace-params'
|
||||
- '--trace-max-array 1024'
|
||||
- '-CFLAGS "-std=c++14 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g"'
|
||||
- '-CFLAGS "-std=c++17 -Wall -DVM_TRACE_FMT_FST -DTOPLEVEL_NAME=ibex_simple_system -g"'
|
||||
- '-LDFLAGS "-pthread -lutil -lelf"'
|
||||
- "-Wall"
|
||||
# RAM primitives wider than 64bit (required for ECC) fail to build in
|
||||
|
|
Loading…
Reference in New Issue