2021-09-16 20:20:00 +03:00
|
|
|
-- The project configuration used when building in CI.
|
|
|
|
|
|
|
|
reject-unconstrained-dependencies: all
|
|
|
|
|
|
|
|
package *
|
|
|
|
ghc-options:
|
2021-11-24 11:19:19 +03:00
|
|
|
-- We compile with package-level parallelism, so just use a small amount
|
|
|
|
-- of module-level parallelism for dependencies:
|
|
|
|
-- TODO: tune me
|
|
|
|
-j2
|
|
|
|
-- For performance, with `-j`:
|
|
|
|
+RTS -A64m -n2m -RTS
|
2022-11-30 20:03:53 +03:00
|
|
|
-- -----------------------------------------------------------
|
|
|
|
-- Allow for dead-code elimination at link-time, to reduce binary size
|
|
|
|
-- TODO WHEN WE NEXT UPGRADE GHC: move this into cabal.project
|
|
|
|
ghc-options: -split-sections
|
|
|
|
ld-options: -Wl,--gc-sections
|
|
|
|
-- -----------------------------------------------------------
|
2021-09-16 20:20:00 +03:00
|
|
|
|
2021-10-20 19:14:00 +03:00
|
|
|
-- Enable optimizations in all local (hasura) packages:
|
|
|
|
flags: +optimize-hasura
|
|
|
|
|
2021-09-16 20:20:00 +03:00
|
|
|
package graphql-engine
|
|
|
|
ghc-options:
|
2021-11-24 11:19:19 +03:00
|
|
|
-- At this point though we definitely want full module-level parallelism:
|
|
|
|
-j
|
2021-09-16 20:20:00 +03:00
|
|
|
-Werror
|
|
|
|
tests: true
|
|
|
|
benchmarks: true
|
|
|
|
|
|
|
|
-- %%%-BEGIN-PRO-ONLY-CONTENT-%%%
|
|
|
|
|
|
|
|
-- NOTE:
|
|
|
|
-- The label directly above this note marks the beginning of the pro-only
|
|
|
|
-- section of this file that should be removed by `Copybara` when migrating
|
|
|
|
-- this file to the public `graphql-engine` repository. We use a simple
|
|
|
|
-- regular expression to identify these segments (see the "transformations" in
|
|
|
|
-- `copy.bara.sky`), so please take care when manipulating this label!
|
|
|
|
|
|
|
|
package graphql-engine-pro
|
|
|
|
ghc-options:
|
2021-11-24 11:19:19 +03:00
|
|
|
-- At this point though we definitely want full module-level parallelism:
|
|
|
|
-j
|
2021-10-20 19:14:00 +03:00
|
|
|
-Werror
|
2021-09-16 20:20:00 +03:00
|
|
|
tests: true
|