summaryrefslogtreecommitdiff
path: root/gf.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'gf.cabal')
-rw-r--r--gf.cabal26
1 files changed, 26 insertions, 0 deletions
diff --git a/gf.cabal b/gf.cabal
index 8eff1a671..a19772a57 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -68,6 +68,11 @@ flag c-runtime
Description: Include functionality from the C run-time library (which must be installed already)
Default: False
+flag pre-pmcfg
+ Description: Use the pre-optimization PMCFG generator
+ Default: False
+ Manual: True
+
library
default-language: Haskell2010
build-depends:
@@ -291,6 +296,11 @@ library
if flag(c-runtime)
cpp-options: -DC_RUNTIME
+ if flag(pre-pmcfg)
+ cpp-options: -DPRE_PMCFG
+ other-modules:
+ GF.Compile.GeneratePmcfgPre
+
if flag(server)
build-depends:
cgi >= 3001.3.0.2 && < 3001.6,
@@ -394,6 +404,22 @@ executable gf
-- if impl(ghc>=7.0)
-- ghc-options: -rtsopts
+benchmark gf-compiler-bench
+ type: exitcode-stdio-1.0
+ main-is: Main.hs
+ hs-source-dirs: bench/compiler
+ build-depends:
+ base >= 4.9.1 && < 4.22,
+ directory >= 1.3.0 && < 1.4,
+ filepath >= 1.4.1 && < 1.5,
+ gf,
+ tasty-bench >= 0.5 && < 0.6
+ ghc-options: -rtsopts
+ default-language: Haskell2010
+
+ if impl(ghc<8.0)
+ buildable: False
+
test-suite gf-tests
type: exitcode-stdio-1.0
main-is: run.hs