OSDN Git Service

am 2ee64e38: Merge "Add a test-case for lit xunit output"
[android-x86/external-llvm.git] / llvm-host-build.mk
index b40bcbe..a3c9539 100644 (file)
@@ -49,9 +49,15 @@ LOCAL_C_INCLUDES :=  \
        $(LLVM_ROOT_PATH)/host/include  \
        $(LOCAL_C_INCLUDES)
 
-LOCAL_IS_HOST_MODULE := true
+# Add on ncurses to have support for terminfo
+ifneq ($(HOST_OS),windows)
+LOCAL_LDLIBS += -lncurses
+ifneq ($(HOST_OS),darwin)
+LOCAL_LDLIBS += -lgcc_s
+endif
+endif
 
-LOCAL_32_BIT_ONLY := true
+LOCAL_IS_HOST_MODULE := true
 
 ###########################################################
 ## Commands for running tblgen to compile a td file