[project @ 2001-07-11 13:24:24 by rrt]
authorrrt <unknown>
Wed, 11 Jul 2001 13:24:25 +0000 (13:24 +0000)
committerrrt <unknown>
Wed, 11 Jul 2001 13:24:25 +0000 (13:24 +0000)
Replace GhcLibToolsHcOpts with FptoolsHcOpts, and make it apply to all
programs in fptools, not just the hslibs tools. Now there's a way of
controlling compiler flags to all programs in the tree, so

a) by default all utilities should be optimised (before this was only done
for one or two like hsc2hs)

b) if you're doing development work, you can get everything built quicker by
setting FptoolsHcOpts appropriately

mk/config.mk.in
mk/target.mk

index 822cd2f..f69ef61 100644 (file)
@@ -298,8 +298,8 @@ HsLibsFor   = ghc
 # hslibs for GHC also uses the following variables (defined above):
 #   GhcLibWays, GhcLibHcOpts, GhcLibToolsHcOpts, DLLized, StripLibraries
 
-# Haskell compiler options for tools in hslibs
-GhcLibToolsHcOpts=-O
+# Haskell compiler options for tools in fptools
+FptoolsHcOpts=-O
 
 # Build the Haskell Readline bindings?
 #
index 57b5628..0f11536 100644 (file)
@@ -312,6 +312,9 @@ endif
 SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
 ifneq "$(PACKAGE)" ""
 SRC_HC_OPTS += -package-name $(PACKAGE)
+else
+# No library, we are actually building the tools
+SRC_HC_OPTS += $(FptoolsHcOpts)
 endif
 
 #----------------------------------------