forked from GitHub/gf-core
Make noexpand the default optimization package when configuring with -fcclazy
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE CPP #-}
|
||||||
module GF.Infra.Option
|
module GF.Infra.Option
|
||||||
(
|
(
|
||||||
-- * Option types
|
-- * Option types
|
||||||
@@ -268,7 +269,11 @@ defaultFlags = Flags {
|
|||||||
optResName = Nothing,
|
optResName = Nothing,
|
||||||
optPreprocessors = [],
|
optPreprocessors = [],
|
||||||
optEncoding = "latin1",
|
optEncoding = "latin1",
|
||||||
|
#ifdef CC_LAZY
|
||||||
|
optOptimizations = Set.fromList [OptStem,OptCSE],
|
||||||
|
#else
|
||||||
optOptimizations = Set.fromList [OptStem,OptCSE,OptExpand,OptParametrize],
|
optOptimizations = Set.fromList [OptStem,OptCSE,OptExpand,OptParametrize],
|
||||||
|
#endif
|
||||||
optOptimizePGF = False,
|
optOptimizePGF = False,
|
||||||
optMkIndexPGF = False,
|
optMkIndexPGF = False,
|
||||||
optCFGTransforms = Set.fromList [CFGRemoveCycles, CFGBottomUpFilter,
|
optCFGTransforms = Set.fromList [CFGRemoveCycles, CFGBottomUpFilter,
|
||||||
|
|||||||
Reference in New Issue
Block a user