summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-03-13 16:00:08 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-03-13 16:00:08 +0000
commit8b7e4e09174a407fb4e9f6e8f2e105c9d272b214 (patch)
treee7061796e9835c15bc5d2e7581e74fa92ee59b4f /mk
parentf50b78749c03124f918014cd113c68b439b032bf (diff)
downloadhaskell-8b7e4e09174a407fb4e9f6e8f2e105c9d272b214.tar.gz
cache the values of ghc_ge_XXX at configure-time
This avoids recomputing them via $(shell) each time make expands one of these variables, which is very expensive (0.3s or so) on Windows.
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index c928dbf9ae..d1605d1c2b 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -833,11 +833,11 @@ GhcMajVersion = @GhcMajVersion@
GhcMinVersion = @GhcMinVersion@
# Some useful GHC version predicates:
-ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
-ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi)
-ghc_ge_602 = $(shell if (test $(GhcCanonVersion) -ge 602); then echo YES; else echo NO; fi)
-ghc_ge_603 = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
-ghc_ge_605 = $(shell if (test $(GhcCanonVersion) -ge 605); then echo YES; else echo NO; fi)
+ghc_ge_504 = @ghc_ge_504@
+ghc_ge_601 = @ghc_ge_601@
+ghc_ge_602 = @ghc_ge_602@
+ghc_ge_603 = @ghc_ge_603@
+ghc_ge_605 = @ghc_ge_605@
endif
# Canonicalised ghc version number, used for easy (integer) version