aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-11-03 21:59:43 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-11-03 21:59:43 +0000
commit3160f5018b58edd927dc288630f115b8f910f8f3 (patch)
tree8a7daa13547b5f9f25c9238a930152cf7bc3368f
parent0d8024950adc786e7d360261de0effe0ddd236d0 (diff)
parentb6426fc192e01338f9983c8c9943515af191afd6 (diff)
downloadexternal_llvm-3160f5018b58edd927dc288630f115b8f910f8f3.tar.gz
external_llvm-3160f5018b58edd927dc288630f115b8f910f8f3.tar.bz2
external_llvm-3160f5018b58edd927dc288630f115b8f910f8f3.zip
Merge "Add color support for Clang!"
-rw-r--r--host/include/llvm/Config/config.h3
-rw-r--r--llvm-host-build.mk5
2 files changed, 8 insertions, 0 deletions
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h
index 42115e4975..813584886b 100644
--- a/host/include/llvm/Config/config.h
+++ b/host/include/llvm/Config/config.h
@@ -472,6 +472,9 @@
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
+/* Define if the setupterm() function is supported this platform. */
+#define HAVE_TERMINFO 1
+
/* Define to 1 if you have the <termios.h> header file. */
#define HAVE_TERMIOS_H 1
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index 4e2898d7b5..109bb2ec8c 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -51,6 +51,11 @@ LOCAL_C_INCLUDES := \
external/libcxx/include \
$(LOCAL_C_INCLUDES)
+# Add on ncurses to have support for terminfo
+ifneq ($(HOST_OS),windows)
+LOCAL_LDLIBS += -lncurses
+endif
+
LOCAL_IS_HOST_MODULE := true
LOCAL_32_BIT_ONLY := true