summaryrefslogtreecommitdiff
path: root/ghc/lib/compat
diff options
context:
space:
mode:
authorsimonmar <unknown>2005-01-26 16:03:41 +0000
committersimonmar <unknown>2005-01-26 16:03:41 +0000
commit55aa70cdc5ebc3e1cb9d73907f3e9c72f82b6796 (patch)
treea7f6ad7af3d6ae699ebb8d52856784cdcb57b7dd /ghc/lib/compat
parented009da3ac2263249bba0673a13bd0718aa2dcce (diff)
downloadhaskell-55aa70cdc5ebc3e1cb9d73907f3e9c72f82b6796.tar.gz
[project @ 2005-01-26 16:03:40 by simonmar]
Common up the ghc_ge_XXX variables into config.mk, and add the ability to build ghc/lib and ghc/utils using the stage1 compiler, by saying 'make UseStage1=YES'. This is going to be useful for bootstrapping.
Diffstat (limited to 'ghc/lib/compat')
-rw-r--r--ghc/lib/compat/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/ghc/lib/compat/Makefile b/ghc/lib/compat/Makefile
index 6365954fbe..30c5d18889 100644
--- a/ghc/lib/compat/Makefile
+++ b/ghc/lib/compat/Makefile
@@ -7,6 +7,7 @@ ALL_DIRS = \
Distribution \
Distribution/Compat \
System \
+ System/Directory \
cbits
LIBRARY = libghccompat.a
@@ -16,9 +17,7 @@ MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
UseGhcForCc = YES
-ghc_603_plus = $(shell if (test $(GhcCanonVersion) -ge 603); then echo YES; else echo NO; fi)
-
-ifeq "$(ghc_603_plus)" "YES"
+ifeq "$(ghc_ge_603)" "YES"
# These modules are all provided in GHC 6.3+
EXCLUDED_SRCS += \
System/Directory/Internals.hs \