summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 5c239cd1db..5a1845c2b8 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -661,7 +661,11 @@ BUILD_DIRS += utils/dll-split
BUILD_DIRS += utils/ghc-pwd
BUILD_DIRS += utils/ghc-cabal
BUILD_DIRS += utils/hpc
+ifeq "$(GhcWithInterpreter)" "YES"
BUILD_DIRS += utils/runghc
+else ifeq "$(CLEANING)" "YES"
+BUILD_DIRS += utils/runghc
+endif
BUILD_DIRS += ghc
ifneq "$(BINDIST)" "YES"