summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-01 22:29:19 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-01 22:31:22 +0000
commitdd9da49ceda5bd0d6c860604ace0ca9829199fe5 (patch)
treedf23215803829e60750ec4666987a9d256f7655d /mk
parentffb2a8c216ad8791422008cc92c8048f4528bbf4 (diff)
downloadhaskell-dd9da49ceda5bd0d6c860604ace0ca9829199fe5.tar.gz
Fix when terminfo is built; fixes #7700
We now use the 'host' to determine whether stage0 builds terminfo, and 'target' to determine whether stage1 does. We don't build it if the platform is either Windows or ios.
Diffstat (limited to 'mk')
-rw-r--r--mk/project.mk.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/project.mk.in b/mk/project.mk.in
index df845c613a..e47663fcdb 100644
--- a/mk/project.mk.in
+++ b/mk/project.mk.in
@@ -135,6 +135,13 @@ else
Windows_Host=NO
endif
+# Windows_Target=YES if we are targetting a Windows platform
+ifneq "$(findstring $(TargetOS_CPP), mingw32 cygwin32)" ""
+Windows_Target=YES
+else
+Windows_Target=NO
+endif
+
# Tell the build system what the host operating system is
# This distinguishes "msys" and "cygwin", which are not
# not distinguished by HOST_OS_CPP