From 6a5972e00d139cf218e513d0624512e6b4004328 Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 9 Sep 2011 13:50:38 +0000 Subject: [PATCH] Make noexpand the default optimization package when configuring with -fcclazy --- src/compiler/GF/Infra/Option.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/GF/Infra/Option.hs b/src/compiler/GF/Infra/Option.hs index 1560f315f..e121abfb6 100644 --- a/src/compiler/GF/Infra/Option.hs +++ b/src/compiler/GF/Infra/Option.hs @@ -1,3 +1,4 @@ +{-# LANGUAGE CPP #-} module GF.Infra.Option ( -- * Option types @@ -268,7 +269,11 @@ defaultFlags = Flags { optResName = Nothing, optPreprocessors = [], optEncoding = "latin1", +#ifdef CC_LAZY + optOptimizations = Set.fromList [OptStem,OptCSE], +#else optOptimizations = Set.fromList [OptStem,OptCSE,OptExpand,OptParametrize], +#endif optOptimizePGF = False, optMkIndexPGF = False, optCFGTransforms = Set.fromList [CFGRemoveCycles, CFGBottomUpFilter,