1 # Windows can't use Clang to build yet
2 ifneq ($(HOST_OS),windows)
4 include external/libcxx/libcxx.mk
9 -D__STDC_LIMIT_MACROS \
11 -fomit-frame-pointer \
14 -Wno-unused-parameter \
19 ifeq ($(LLVM_ENABLE_ASSERTION),true)
26 ifneq ($(REQUIRES_EH),1)
27 LOCAL_CFLAGS += -fno-exceptions
30 LOCAL_CFLAGS += -fexceptions
33 ifneq ($(REQUIRES_RTTI),1)
34 LOCAL_CPPFLAGS += -fno-rtti
41 -Woverloaded-virtual \
45 # Make sure bionic is first so we can include system headers.
48 $(LLVM_ROOT_PATH)/include \
49 $(LLVM_ROOT_PATH)/host/include \
52 # Add on ncurses to have support for terminfo
53 ifneq ($(HOST_OS),windows)
54 LOCAL_LDLIBS += -lncurses \
58 LOCAL_IS_HOST_MODULE := true
60 ###########################################################
61 ## Commands for running tblgen to compile a td file
62 ###########################################################
63 define transform-host-td-to-out
65 @echo "Host TableGen: $(TBLGEN_LOCAL_MODULE) (gen-$(1)) <= $<"
66 $(hide) $(LLVM_TBLGEN) \
68 -I $(LLVM_ROOT_PATH)/include \
69 -I $(LLVM_ROOT_PATH)/host/include \
70 -I $(LLVM_ROOT_PATH)/lib/Target \
71 $(if $(strip $(CLANG_ROOT_PATH)),-I $(CLANG_ROOT_PATH)/include,) \