Tweak build.mk.sample
authorIan Lynagh <ian@well-typed.com>
Thu, 25 Oct 2012 20:09:50 +0000 (21:09 +0100)
committerIan Lynagh <ian@well-typed.com>
Thu, 25 Oct 2012 20:09:50 +0000 (21:09 +0100)
Now that we can build dyn-only, we don't need to force
DYNAMIC_BY_DEFAULT to NO. We just set GhcLibWays appropriately.

mk/build.mk.sample

index 6ac5c56..17fb9a1 100644 (file)
@@ -30,8 +30,7 @@
 # A development build, working on the stage 2 compiler:
 #BuildFlavour = devel2
 
-GhcLibWays = v
-DYNAMIC_BY_DEFAULT = NO
+GhcLibWays = $(if $(filter $(DYNAMIC_BY_DEFAULT),YES),dyn,v)
 
 # Uncomment this to get prettier build output.
 # Please use V = 1 when reporting GHC bugs.