Dedup simulation flags

This commit is contained in:
abejgonzalez
2020-08-21 17:27:50 -07:00
parent fa97359516
commit 06747e6cff
3 changed files with 31 additions and 38 deletions

21
vcs.mk
View File

@@ -14,25 +14,10 @@ RESET_DELAY ?= 777.7
#----------------------------------------------------------------------------------------
# gcc configuration/optimization
#----------------------------------------------------------------------------------------
CXX_OPT_FLAGS := -O3
include $(base_dir)/sims/common-sim-flags.mk
VCS_CXXFLAGS = \
$(CXXFLAGS) \
$(CXX_OPT_FLAGS) \
-I$(RISCV)/include \
-I$(dramsim_dir) \
-std=c++11 \
$(EXTRA_SIM_CXXFLAGS)
VCS_LDFLAGS = \
$(LDFLAGS) \
-L$(RISCV)/lib \
-Wl,-rpath,$(RISCV)/lib \
-L$(sim_dir) \
-L$(dramsim_dir) \
-lfesvr \
-ldramsim \
$(EXTRA_SIM_LDFLAGS)
VCS_CXXFLAGS = $(SIM_CXXFLAGS)
VCS_LDFLAGS = $(SIM_LDFLAGS)
# vcs requires LDFLAGS to not include library names (i.e. -l needs to be separate)
VCS_CC_OPTS = \