mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
dd3bbef2fe
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10615 GitOrigin-RevId: 8a45c92bec8444d5ec0aed125f4aa96d9c684728
40 lines
1.9 KiB
Plaintext
40 lines
1.9 KiB
Plaintext
-- This configuration is used by `dev.sh graphql-engine --prof-heap-infomap`
|
|
-- and `--prof-ghc-debug`.
|
|
--
|
|
-- TODO COMING UP: We would like to turn on these flags always. But for now the
|
|
-- resulting binary size increase is too large. This will improve in GHC 9.4, but
|
|
-- also we may need to wait until further work on compressing IPE info lands.
|
|
-- (Likewise we might want to always link with -eventlog)
|
|
|
|
-- Formerly we had:
|
|
-- import: cabal/dev-sh-optimized.project.local
|
|
-- ...but cabal 3.10 broke it. See: TODO
|
|
-- ...so now we need to copy-paste that configuration here to avoid import chains
|
|
-- -------------------------- START dev-sh-optimized.project.local ------------------------------------
|
|
import: dev-sh.project.local
|
|
|
|
---- (reminder: top-level means apply these to all local packages)
|
|
flags: +optimize-hasura
|
|
-- be faster:
|
|
documentation: false
|
|
|
|
-- coverage inhibits performance. NOTE: we can't just put this at the top level
|
|
-- to override, since it seems package-specific configuration takes precedence...
|
|
package graphql-engine
|
|
coverage: false
|
|
package graphql-engine-pro
|
|
coverage: false
|
|
-- -------------------------- END dev-sh-optimized.project.local ------------------------------------
|
|
|
|
-- apply these to all LOCAL packages
|
|
-- TODO would be nice to refactor other dev-sh.project.local to use program-options' as well (and force cabal 3.8)
|
|
program-options
|
|
ghc-options: -fdistinct-constructor-tables -finfo-table-map
|
|
-- TODO: consider using this combination instead, which we might use eventually in
|
|
-- production (although this is still not sufficient to get the file size down
|
|
-- small enough imo):
|
|
-- ghc-options: -fdistinct-constructor-tables -finfo-table-map -fno-info-table-map-with-stack -fno-info-table-map-with-fallback
|
|
-- For each module, STG will be dumped to:
|
|
-- dist-newstyle/**/*.dump-stg-final
|
|
ghc-options: -ddump-stg-final -ddump-to-file
|