2021-12-20 21:26:07 +03:00
|
|
|
-- This configuration is just for building haddocks in CI. `cabal haddock` requires
|
|
|
|
-- the project to be built. We can do that at the end of the build job, but that
|
|
|
|
-- adds ~7min wall clock time to CI, since haddock is extremely slow.
|
|
|
|
-- Instead we make this a parallel job, but use a configuration with optimizations
|
|
|
|
-- off so the haskell build will be relatively fast.
|
|
|
|
|
2022-04-07 10:15:11 +03:00
|
|
|
-- NOTE!: we want to make sure this matches `ci.project.local`, so we can re-use the
|
2021-12-20 21:26:07 +03:00
|
|
|
-- cached library dependencies and don't accidentally rebuild:
|
|
|
|
package *
|
|
|
|
ghc-options:
|
|
|
|
-j2
|
2023-06-27 18:49:07 +03:00
|
|
|
-- For performance, with `-j`:
|
2021-12-20 21:26:07 +03:00
|
|
|
+RTS -A64m -n2m -RTS
|
|
|
|
|
|
|
|
-- Disable optimizations
|
|
|
|
flags: -optimize-hasura
|
|
|
|
|
2023-06-27 18:49:07 +03:00
|
|
|
-- Set common options
|
|
|
|
program-options
|
|
|
|
ghc-options: -j -Werror
|
2022-11-21 18:06:36 +03:00
|
|
|
|
2023-06-27 18:49:07 +03:00
|
|
|
-- For speed; see `cabal.project.dev-sh.local`:
|
|
|
|
executable-dynamic: True
|
|
|
|
library-vanilla: False
|