Skip to content

Commit

Permalink
fix(difftest): include difftest-def.h in spike (#81)
Browse files Browse the repository at this point in the history
Previously, we only include `diffteset-def.h` in difftest-related files,
which causes various inconsistencies in class or struct definitions.
  • Loading branch information
Tang-Haojin authored Jan 1, 2025
1 parent f5cdffb commit a8639ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions difftest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SPIKE_PATH = $(abspath ..)
SPIKE_TARGET = $(BUILD_DIR)/spike
SPIKE_MAKEFILE = $(BUILD_DIR)/Makefile

SPIKE_CFLAGS = -O3 -DDIFFTEST
SPIKE_CXXFLAGS = -O3 -DDIFFTEST -Wno-c99-designator
SPIKE_CFLAGS = -O3 -DDIFFTEST -include $(abspath .)/difftest-def.h
SPIKE_CXXFLAGS = -O3 -DDIFFTEST -include $(abspath .)/difftest-def.h -Wno-c99-designator
SPIKE_LDFLAGS =

ifneq ($(CPU),)
Expand Down

0 comments on commit a8639ee

Please sign in to comment.