graphql-engine/cabal/ci-haddock.project.local
Samir Talwar 4049fbd728 server: Use program-options from Cabal 3.8 to spread ghc-options everywhere.
This makes it far easier to add new packages without having to add GHC flags everywhere.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9684
GitOrigin-RevId: 1470b618a7e6582ad5053680c89df0c81920402e
2023-06-27 15:50:41 +00:00

25 lines
829 B
Plaintext

-- 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.
-- NOTE!: we want to make sure this matches `ci.project.local`, so we can re-use the
-- cached library dependencies and don't accidentally rebuild:
package *
ghc-options:
-j2
-- For performance, with `-j`:
+RTS -A64m -n2m -RTS
-- Disable optimizations
flags: -optimize-hasura
-- Set common options
program-options
ghc-options: -j -Werror
-- For speed; see `cabal.project.dev-sh.local`:
executable-dynamic: True
library-vanilla: False