Fix compile error when FST traces are enabled on macOS.

Compile options should be the same for all platforms.
This commit is contained in:
Vadzim Dambrouski 2021-06-27 17:34:23 +03:00
parent 23afca3de8
commit 35204225e8
1 changed files with 2 additions and 1 deletions

View File

@ -7,10 +7,11 @@ ifeq ($(UNAME_S),Darwin)
LDFLAGS += -lpthread -ljson-c -lm -lstdc++ -ldl -levent
else
CC ?= gcc
CFLAGS += -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE) $(if $(TRACE_FST), -DTRACE_FST)
CFLAGS += -ggdb
LDFLAGS += -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent
endif
CFLAGS += -Wall -$(OPT_LEVEL) $(if $(COVERAGE), -DVM_COVERAGE) $(if $(TRACE_FST), -DTRACE_FST)
CC_SRCS ?= "--cc sim.v"