From ee0cb5b7468a941e75449f552ff563e8bb4e6c49 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Wed, 24 Feb 2010 16:21:33 +0100
Subject: [PATCH] Allow overriding the ghc compiler used
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

… via a GHC make variable.
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f575258c0..e7f497e00 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ HPROGS = hbal hscan hail hspace
 HALLPROGS = $(HPROGS) test
 HSRCS := $(wildcard Ganeti/HTools/*.hs) $(wildcard Ganeti/*.hs)
 HDDIR = apidoc
+GHC := ghc
 
 DOCS = README.html NEWS.html
 
@@ -15,7 +16,7 @@ HPCEXCL = --exclude Main --exclude Ganeti.HTools.QC
 all: $(HPROGS)
 
 $(HALLPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile
-	ghc --make $(HFLAGS) $(HEXTRA) $@
+	$(GHC) --make $(HFLAGS) $(HEXTRA) $@
 
 test: HEXTRA=-fhpc -Wwarn
 
-- 
GitLab