Add --flags=optimize for cabal configure
This commit is contained in:
parent
c7b6465016
commit
a60181df3a
|
@ -2,7 +2,7 @@
|
||||||
--
|
--
|
||||||
-- see: https://github.com/sol/hpack
|
-- see: https://github.com/sol/hpack
|
||||||
--
|
--
|
||||||
-- hash: bd76dbaf4832c321feb19fe34a80e29c90cdbc150048dcee92038f96725c4f30
|
-- hash: 16beb8d29116e6049b925d6727fb8e104c6722c162db8fa745bc2ec17724da47
|
||||||
|
|
||||||
name: hnix
|
name: hnix
|
||||||
version: 0.5.0
|
version: 0.5.0
|
||||||
|
@ -25,6 +25,11 @@ source-repository head
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/jwiegley/hnix
|
location: https://github.com/jwiegley/hnix
|
||||||
|
|
||||||
|
flag optimize
|
||||||
|
description: Enable all optimization flags
|
||||||
|
manual: True
|
||||||
|
default: False
|
||||||
|
|
||||||
flag tracing
|
flag tracing
|
||||||
description: Enable full debug tracing
|
description: Enable full debug tracing
|
||||||
manual: True
|
manual: True
|
||||||
|
|
14
package.yaml
14
package.yaml
|
@ -33,8 +33,6 @@ dependencies:
|
||||||
|
|
||||||
ghc-options:
|
ghc-options:
|
||||||
- -Wall
|
- -Wall
|
||||||
# - -fexpose-all-unfoldings
|
|
||||||
# - -O2
|
|
||||||
|
|
||||||
flags:
|
flags:
|
||||||
tracing:
|
tracing:
|
||||||
|
@ -42,6 +40,18 @@ flags:
|
||||||
manual: True
|
manual: True
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
|
optimize:
|
||||||
|
description: Enable all optimization flags
|
||||||
|
manual: True
|
||||||
|
default: False
|
||||||
|
|
||||||
|
when:
|
||||||
|
- condition: flag(optimize)
|
||||||
|
ghc-options:
|
||||||
|
- -fexpose-all-unfoldings
|
||||||
|
- -fspecialise-aggressively
|
||||||
|
- -O2
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- condition: flag(tracing)
|
- condition: flag(tracing)
|
||||||
cpp-options: -DENABLE_TRACING=1
|
cpp-options: -DENABLE_TRACING=1
|
||||||
|
|
Loading…
Reference in a new issue