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
55 ifneq ($(HOST_OS),darwin)
56 LOCAL_LDLIBS += -lgcc_s
60 LOCAL_IS_HOST_MODULE := true
62 ###########################################################
63 ## Commands for running tblgen to compile a td file
64 ###########################################################
65 define transform-host-td-to-out
67 @echo "Host TableGen: $(TBLGEN_LOCAL_MODULE) (gen-$(1)) <= $<"
68 $(hide) $(LLVM_TBLGEN) \
70 -I $(LLVM_ROOT_PATH)/include \
71 -I $(LLVM_ROOT_PATH)/host/include \
72 -I $(LLVM_ROOT_PATH)/lib/Target \
73 $(if $(strip $(CLANG_ROOT_PATH)),-I $(CLANG_ROOT_PATH)/include,) \