summaryrefslogtreecommitdiff
path: root/mk/config.mk.in
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-02-28 11:01:01 -0500
committerBen Gamari <ben@smart-cactus.org>2017-02-28 15:43:38 -0500
commit65c41cc58d341672f6e55b40488729c8f7b6fbf2 (patch)
tree7900e2d58f993a3bd3e7e3494a52f7b77cfeb06e /mk/config.mk.in
parentfc6c222b90e68fed74a6bee6f087f47bf31f21c6 (diff)
downloadhaskell-65c41cc58d341672f6e55b40488729c8f7b6fbf2.tar.gz
config.mk.in: Disable terminfo support on iOS
Test Plan: Validate Reviewers: angerman, austin, rwbarton Subscribers: thomie, snowleopard Differential Revision: https://phabricator.haskell.org/D3242
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r--mk/config.mk.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 0fad90c32b..729abfabef 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -103,10 +103,13 @@ GhcProfiled=NO
# WITH_TERMINFO can be used to disable terminfo support throughout the compiler
# and its tools. This is handy in the case of cross-compilation, where we may
# not have an ncurses build for the target.
-ifeq "$(Windows_Target)" "NO"
-WITH_TERMINFO=YES
-else
+ifeq "$(TargetOS_CPP)" "ios"
+# iOS has no terminfo support
+WITH_TERMINFO=NO
+else ifeq "$(Windows_Target)" "YES"
WITH_TERMINFO=NO
+else
+WITH_TERMINFO=YES
endif
ifeq "$(findstring $(TargetOS_CPP),linux freebsd dragonfly openbsd netbsd solaris2 kfreebsdgnu haiku linux-android)" ""