aboutsummaryrefslogtreecommitdiff
path: root/tools/edis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/edis/Makefile')
-rw-r--r--tools/edis/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/edis/Makefile b/tools/edis/Makefile
index 7f7b097e2c..a5ec82ba7e 100644
--- a/tools/edis/Makefile
+++ b/tools/edis/Makefile
@@ -45,6 +45,19 @@ ifeq ($(HOST_OS),Darwin)
endif
endif
+EDIS_DEFINES =
+
+ifneq (,$(findstring X86,$(TARGETS_TO_BUILD)))
+ EDIS_DEFINES := $(EDIS_DEFINES) -DEDIS_X86
+endif
+
+ifneq (,$(findstring ARM,$(TARGETS_TO_BUILD)))
+ EDIS_DEFINES := $(EDIS_DEFINES) -DEDIS_ARM
+endif
+
+CXXFLAGS := $(CXXFLAGS)
+#$(EDIS_DEFINES)
+
EDInfo.inc: $(TBLGEN)
$(Echo) "Building semantic information header"
$(Verb) $(TableGen) -o $(call SYSPATH, $@) -gen-enhanced-disassembly-header /dev/null