build/sim: use -O0 for verilator compilation

In most of the case, execution speed is already fast enough with -O0 and
with complex design -O0 is a lost faster to compile than -O3. In the future
we could add a switch to choose which optimization we want.
This commit is contained in:
Florent Kermarrec 2019-06-07 11:16:39 +02:00
parent c64129dc69
commit ecb60f6e43
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include variables.mak
CC = gcc
CFLAGS = -Wall -O3 -ggdb $(if $(COVERAGE), -DVM_COVERAGE)
CFLAGS = -Wall -O0 -ggdb $(if $(COVERAGE), -DVM_COVERAGE)
LDFLAGS = -lpthread -ljson-c -lm -lstdc++ -ldl -levent
CC_SRCS ?= "--cc dut.v"