summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-01-10 09:28:47 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-01-10 20:00:30 +1100
commitb1c063b47a6a4d078626f9a2d4b07cbb244de340 (patch)
treec0123fc09e67d270f584bd8825604c658e5b4d56 /ghc.mk
parent4c9620fc0fd4d2fee7920633a8b03776a8f0948d (diff)
downloadhaskell-b1c063b47a6a4d078626f9a2d4b07cbb244de340.tar.gz
ghc.mk: Use Windows_Target instead of Windows_Host
This is a step towards building a Linux to Windows cross-compiler. Test Plan: Build on Linux and Windows Reviewers: bgamari, hvr, austin, Phyx Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1758 GHC Trac Issues: #10070
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index 878ddc8214..1d6f02b9eb 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -428,11 +428,11 @@ PACKAGES_STAGE1 += deepseq
PACKAGES_STAGE1 += bytestring
PACKAGES_STAGE1 += containers
-ifeq "$(Windows_Host)" "YES"
+ifeq "$(Windows_Target)" "YES"
PACKAGES_STAGE1 += Win32
endif
PACKAGES_STAGE1 += time
-ifeq "$(Windows_Host)" "NO"
+ifeq "$(Windows_Target)" "NO"
PACKAGES_STAGE1 += unix
endif