diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-02-28 09:27:04 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-02-28 10:56:07 -0500 |
commit | c686af5818686efb55cfd81ac104027c959d6277 (patch) | |
tree | f30c9924759689db56fc1e7a684392a54fea697f /mk | |
parent | c662d41e2006f5a45619d40d2369b24642348f1a (diff) | |
download | haskell-c686af5818686efb55cfd81ac104027c959d6277.tar.gz |
Add flag allowing convenient disabling of terminfo support
This is a common thing that users who cross-compile must fight against.
It turns out that it's pretty straightforward to make is convenient.
Test Plan: Cross compile without a target `ncurses` available
Reviewers: danharaj, hvr, erikd, austin, rwbarton
Subscribers: rwbarton, thomie, snowleopard
Differential Revision: https://phabricator.haskell.org/D3177
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 9 | ||||
-rw-r--r-- | mk/flavours/bench-cross.mk | 1 | ||||
-rw-r--r-- | mk/flavours/perf-cross.mk | 1 | ||||
-rw-r--r-- | mk/flavours/quick-cross.mk | 1 |
4 files changed, 12 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index b90aca3ad9..0fad90c32b 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -100,6 +100,15 @@ GhcDynamic=NO # GhcProfiled=YES means compile a profiled stage-2 compiler 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 +WITH_TERMINFO=NO +endif + ifeq "$(findstring $(TargetOS_CPP),linux freebsd dragonfly openbsd netbsd solaris2 kfreebsdgnu haiku linux-android)" "" TargetElf = NO else diff --git a/mk/flavours/bench-cross.mk b/mk/flavours/bench-cross.mk index 15b359e259..90344fc3ac 100644 --- a/mk/flavours/bench-cross.mk +++ b/mk/flavours/bench-cross.mk @@ -8,6 +8,7 @@ HADDOCK_DOCS = NO BUILD_SPHINX_HTML = NO BUILD_SPHINX_PDF = NO BUILD_MAN = NO +WITH_TERMINFO = NO INTEGER_LIBRARY = integer-simple Stage1Only = YES diff --git a/mk/flavours/perf-cross.mk b/mk/flavours/perf-cross.mk index 669b51a3b1..f202642b7d 100644 --- a/mk/flavours/perf-cross.mk +++ b/mk/flavours/perf-cross.mk @@ -8,6 +8,7 @@ HADDOCK_DOCS = NO BUILD_SPHINX_HTML = NO BUILD_SPHINX_PDF = NO BUILD_MAN = NO +WITH_TERMINFO = NO INTEGER_LIBRARY = integer-simple Stage1Only = YES diff --git a/mk/flavours/quick-cross.mk b/mk/flavours/quick-cross.mk index 92347cae4a..b886a8da9f 100644 --- a/mk/flavours/quick-cross.mk +++ b/mk/flavours/quick-cross.mk @@ -8,6 +8,7 @@ HADDOCK_DOCS = NO BUILD_SPHINX_HTML = NO BUILD_SPHINX_PDF = NO BUILD_MAN = NO +WITH_TERMINFO = NO INTEGER_LIBRARY = integer-simple Stage1Only = YES |