From 88d85aa65ea15d984bf207f82d99928eda0b6c26 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sat, 28 Jun 2014 20:23:48 +0200 Subject: Add BUILD_DPH variable to GHC build-system Now that the `libraries/dph` submodule is checked out always we need a different way to disable building DPH to save compile-time while developing GHC. This commit adds a new YES/NO Make variable `BUILD_DPH` that can be used inside mk/build.mk to control whether to build libraries/dph or not. The default setting is `BUILD_DPH=YES` (via `mk/config.mk.in`). This also changes `validate`'s flag `--no-dph` to explicitly disable DPH for the current validation run. Signed-off-by: Herbert Valerio Riedel Test Plan: successful validates with `--fast --no-dph` Differential Revision: https://phabricator.haskell.org/D31 --- mk/build.mk.sample | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mk/build.mk.sample') diff --git a/mk/build.mk.sample b/mk/build.mk.sample index 3d47bbe82a..a323884334 100644 --- a/mk/build.mk.sample +++ b/mk/build.mk.sample @@ -66,6 +66,9 @@ V = 1 # working on stage 2 and want to freeze stage 1 and the libraries for # a while. +# Uncomment the following line to disable building DPH +#BUILD_DPH=NO + GhcLibWays = $(if $(filter $(DYNAMIC_GHC_PROGRAMS),YES),v dyn,v) # ----------- A Performance/Distribution build -------------------------------- -- cgit v1.2.1