summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-07-09 22:45:34 +0000
committerIan Lynagh <igloo@earth.li>2010-07-09 22:45:34 +0000
commitecc60710f04cce34c121af1a17416c7140d364f2 (patch)
treefe7cf731ce72bff935cec73745593da06614bbcc /ghc.mk
parent75736ff2a36d165eed7c216b3fd510d525094b79 (diff)
downloadhaskell-ecc60710f04cce34c121af1a17416c7140d364f2.tar.gz
Move a bit of build system code
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk24
1 files changed, 12 insertions, 12 deletions
diff --git a/ghc.mk b/ghc.mk
index 8e398429b9..a9ad5ea9ff 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -591,18 +591,6 @@ ifneq "$(findstring $(phase),0 1 2)" ""
ghc_stage1_DISABLE = YES
endif
-ifneq "$(CLEANING)" "YES"
-ifeq "$(INTEGER_LIBRARY)" "integer-gmp"
-libraries/base_dist-install_CONFIGURE_OPTS += --flags=-integer-simple
-else
- ifeq "$(INTEGER_LIBRARY)" "integer-simple"
- libraries/base_dist-install_CONFIGURE_OPTS += --flags=integer-simple
- else
-$(error Unknown integer library: $(INTEGER_LIBRARY))
- endif
-endif
-endif
-
ifneq "$(findstring $(phase),0 1 2 3)" ""
# In phases 0-3, we disable stage2-3, the full libraries and haddock
utils/haddock_dist_DISABLE = YES
@@ -620,6 +608,18 @@ $(foreach lib,$(PACKAGES) $(PACKAGES_STAGE2),$(eval \
libraries/$(lib)_dist-install_DISABLE = YES))
endif
+ifneq "$(CLEANING)" "YES"
+ifeq "$(INTEGER_LIBRARY)" "integer-gmp"
+libraries/base_dist-install_CONFIGURE_OPTS += --flags=-integer-simple
+else
+ ifeq "$(INTEGER_LIBRARY)" "integer-simple"
+ libraries/base_dist-install_CONFIGURE_OPTS += --flags=integer-simple
+ else
+$(error Unknown integer library: $(INTEGER_LIBRARY))
+ endif
+endif
+endif
+
# These packages don't pass the Cabal checks because hs-source-dirs
# points outside the source directory. This isn't a real problem in
# these cases, so we just skip checking them.