Skip to content

Commit 9d7e4c8

Browse files
htfaburish
htfab
authored andcommitted
fix(test): add SRC_DIR to GL test include path
1 parent 5077094 commit 9d7e4c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ifneq ($(GATES),yes)
1212
# RTL simulation:
1313
SIM_BUILD = sim_build/rtl
1414
VERILOG_SOURCES += $(addprefix $(SRC_DIR)/,$(PROJECT_SOURCES))
15-
COMPILE_ARGS += -I$(SRC_DIR)
1615

1716
else
1817

@@ -31,6 +30,9 @@ VERILOG_SOURCES += $(PWD)/gate_level_netlist.v
3130

3231
endif
3332

33+
# Allow sharing configuration between design and testbench via `include`:
34+
COMPILE_ARGS += -I$(SRC_DIR)
35+
3436
# Include the testbench sources:
3537
VERILOG_SOURCES += $(PWD)/tb.v
3638
TOPLEVEL = tb

0 commit comments

Comments
 (0)