summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index c6e0b58ec9..bd2bf7c16a 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -468,11 +468,15 @@ BUILD_DIRS += \
gmp \
docs/users_guide \
libraries/Cabal/doc \
- $(GHC_MANGLER_DIR) \
- $(GHC_SPLIT_DIR) \
$(GHC_UNLIT_DIR) \
$(GHC_HP2PS_DIR)
+ifneq "$(GhcUnregisterised)" "YES"
+BUILD_DIRS += \
+ $(GHC_MANGLER_DIR) \
+ $(GHC_SPLIT_DIR)
+endif
+
ifneq "$(BINDIST)" "YES"
BUILD_DIRS += \
$(GHC_GENPRIMOP_DIR)