diff options
| author | adelon <22380201+adelon@users.noreply.github.com> | 2026-05-17 20:37:48 +0200 |
|---|---|---|
| committer | adelon <22380201+adelon@users.noreply.github.com> | 2026-05-17 20:37:48 +0200 |
| commit | 3cc01b9d311c7a9f86fbf2fa8c2d66921f9ba030 (patch) | |
| tree | 5b979361c2d6b8ba19ef65345f1f20cf56059fb8 /gf.cabal | |
| parent | 1c086bed25811db1cf71990fb2eeca023e62c060 (diff) | |
Benchmarks, initial sketches
Diffstat (limited to 'gf.cabal')
| -rw-r--r-- | gf.cabal | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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 |
