提交 98fd75ee 编写于 作者: Z Zihao Yu

Makefile.emu: enable ccache if it exists

* For verilator installed by package manager, it may not be configured
  with ccache. So we check it at runtime.
上级 2486bef8
......@@ -8,6 +8,11 @@ EMU_LDFLAGS += -lpthread -lSDL2 -ldl -lz
EMU_VFILES = $(SIM_VSRC)
CCACHE := $(if $(shell which ccache),ccache,)
ifneq ($(CCACHE),)
export OBJCACHE = ccache
endif
VEXTRA_FLAGS = -I$(abspath $(BUILD_DIR)) --x-assign unique -O3 -CFLAGS "$(EMU_CXXFLAGS)" -LDFLAGS "$(EMU_LDFLAGS)"
# Verilator trace support
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册