summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-05-28 19:34:15 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2015-05-30 17:04:10 +0200
commit508a3a33988d2872f580d8b727036f7f443d8b6d (patch)
treeaba7fa0bffc0698ad58bffa777d6a4b280be1ff5 /ghc.mk
parent018fec02a8736043e3a41dd4e9a3c4a932dfc3dc (diff)
downloadhaskell-508a3a33988d2872f580d8b727036f7f443d8b6d.tar.gz
Build system: don't build runghc if GhcWithInterpreter=NO (#10261)
To test: * run `make clean` in utils/runghc * make sure inplace/bin doesn't contain runghc * set GhcWithInterpreter=NO in build.mk * run `make` * note that inplace/bin doesn't contain runghc It won't be installed either, nor will runhaskell. Differential Revision: https://phabricator.haskell.org/D920
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"