summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2011-09-09 13:50:38 +0000
committerhallgren <hallgren@chalmers.se>2011-09-09 13:50:38 +0000
commit312c13c2d8501f006e6a90d909a6a567c7419916 (patch)
tree0092484c9c7840a82c16705d7ad69b219aaeccd2 /src
parent42ea96a5ca449503a9f1ac44aa632d371c24a9fd (diff)
Make noexpand the default optimization package when configuring with -fcclazy
Diffstat (limited to 'src')
-rw-r--r--src/compiler/GF/Infra/Option.hs5
1 files changed, 5 insertions, 0 deletions
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,