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 ###########################################################
62 ## Commands for running tblgen to compile a td file
63 ###########################################################
64 define transform-host-td-to-out
66 @echo "Host TableGen: $(TBLGEN_LOCAL_MODULE) (gen-$(1)) <= $<"
67 $(hide) $(LLVM_TBLGEN) \
69 -I $(LLVM_ROOT_PATH)/include \
70 -I $(LLVM_ROOT_PATH)/host/include \
71 -I $(LLVM_ROOT_PATH)/lib/Target \
72 $(if $(strip $(CLANG_ROOT_PATH)),-I $(CLANG_ROOT_PATH)/include,) \