[commit: ghc] master: config.mk.in: Disable terminfo support on iOS (65c41cc)
git at git.haskell.org
git at git.haskell.org
Tue Feb 28 20:50:46 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/65c41cc58d341672f6e55b40488729c8f7b6fbf2/ghc
>---------------------------------------------------------------
commit 65c41cc58d341672f6e55b40488729c8f7b6fbf2
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Tue Feb 28 11:01:01 2017 -0500
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
>---------------------------------------------------------------
65c41cc58d341672f6e55b40488729c8f7b6fbf2
mk/config.mk.in | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 0fad90c..729abfa 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)" ""
More information about the ghc-commits
mailing list