From a31cf953707dce54fc78bcffbd1773cc554dce8f Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 10 Jul 2008 12:41:41 +0000 Subject: [PATCH] Move "main/BinIface_HC_OPTS += -O" into a pragma in iface/BinIface.hs I assume that we still want this, despite it having been disconnected when the module was moved. --- compiler/Makefile | 1 - compiler/iface/BinIface.hs | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/compiler/Makefile b/compiler/Makefile index a64cd12..ea3e07b 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -647,7 +647,6 @@ endif # We always optimise some low-level modules, otherwise performance of # a non-optimised compiler is severely affected. -main/BinIface_HC_OPTS += -O utils/Binary_HC_OPTS += -O -funbox-strict-fields utils/FastMutInt_HC_OPTS += -O utils/Encoding_HC_OPTS += -O diff --git a/compiler/iface/BinIface.hs b/compiler/iface/BinIface.hs index 58ae603..75e0d64 100644 --- a/compiler/iface/BinIface.hs +++ b/compiler/iface/BinIface.hs @@ -1,7 +1,11 @@ --- +{-# OPTIONS_GHC -O #-} +-- We always optimise this, otherwise performance of a non-optimised +-- compiler is severely affected + +-- -- (c) The University of Glasgow 2002-2006 --- +-- -- Binary interface file support. module BinIface ( writeBinIface, readBinIface, -- 1.7.10.4