From ad428ac635f656fb716029ca011d3f3915e2ad65 Mon Sep 17 00:00:00 2001 From: rrt Date: Wed, 11 Jul 2001 13:24:25 +0000 Subject: [PATCH 1/1] [project @ 2001-07-11 13:24:24 by rrt] 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 | 4 ++-- mk/target.mk | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mk/config.mk.in b/mk/config.mk.in index 822cd2f..f69ef61 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -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? # diff --git a/mk/target.mk b/mk/target.mk index 57b5628..0f11536 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -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 #---------------------------------------- -- 1.7.10.4