config.mk.in: Disable terminfo support on iOS
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 28 Feb 2017 16:01:01 +0000 (11:01 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 28 Feb 2017 20:43:38 +0000 (15:43 -0500)
Test Plan: Validate

Reviewers: angerman, austin, rwbarton

Subscribers: thomie, snowleopard

Differential Revision: https://phabricator.haskell.org/D3242

mk/config.mk.in

index 0fad90c..729abfa 100644 (file)
@@ -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)" ""