1 # Windows can't use Clang to build yet
2 ifneq ($(HOST_OS),windows)
8 -D__STDC_LIMIT_MACROS \
10 -fomit-frame-pointer \
13 -Wno-unused-parameter \
18 ifeq ($(LLVM_ENABLE_ASSERTION),true)
25 ifneq ($(REQUIRES_EH),1)
26 LOCAL_CFLAGS += -fno-exceptions
29 LOCAL_CFLAGS += -fexceptions
32 ifneq ($(REQUIRES_RTTI),1)
33 LOCAL_CPPFLAGS += -fno-rtti
40 -Woverloaded-virtual \
44 # Make sure bionic is first so we can include system headers.
47 $(LLVM_ROOT_PATH)/include \
48 $(LLVM_ROOT_PATH)/host/include \
51 # Add on ncurses to have support for terminfo
52 ifneq ($(HOST_OS),windows)
53 LOCAL_LDLIBS += -lncurses
54 ifneq ($(HOST_OS),darwin)
55 LOCAL_LDLIBS += -lgcc_s
59 LOCAL_IS_HOST_MODULE := true
61 ifeq ($(HOST_PREFER_32_BIT),true)
64 LOCAL_MULTILIB := first
67 ###########################################################
68 ## Commands for running tblgen to compile a td file
69 ###########################################################
70 define transform-host-td-to-out
72 @echo "Host TableGen: $(TBLGEN_LOCAL_MODULE) (gen-$(1)) <= $<"
73 $(hide) $(LLVM_TBLGEN) \
75 -I $(LLVM_ROOT_PATH)/include \
76 -I $(LLVM_ROOT_PATH)/host/include \
77 -I $(LLVM_ROOT_PATH)/lib/Target \
78 $(if $(strip $(CLANG_ROOT_PATH)),-I $(CLANG_ROOT_PATH)/include,) \