mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
aa18f65217
It's about time. To do this I had to check a few more boxes. * I copied the flags from `graphql-engine.cabal` to the libraries in `server/lib`. * I moved `Cacheable` instances of schema parser types beside the typeclass declaration. * I removed imports of `Hasura.Prelude` from the tests, and rewrote them accordingly. * I copied the `TestMonad` parse monad into `server/src-test/Hasura/GraphQL/Schema/RemoteTest.hs`, which was using it. I think this could be done with the real thing, but I tried replacing it with constraints and it messed with my head somewhat. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5311 GitOrigin-RevId: ebebcc50a16f2d517b7f730fe72410827ca3e86c
44 lines
971 B
YAML
44 lines
971 B
YAML
common-boilerplate: &common-boilerplate
|
|
version: 1.0.0
|
|
author:
|
|
- Hasura, Inc.
|
|
github: hasura/github-engine
|
|
extra-source-files:
|
|
- ../../../LICENSE
|
|
|
|
common-lib: &common-lib
|
|
flags:
|
|
optimize-hasura:
|
|
description: Compile hasura code with appropriate optimizations
|
|
default: true
|
|
manual: false
|
|
|
|
profiling:
|
|
description: Configures the project to be profiling-compatible
|
|
default: false
|
|
manual: true
|
|
|
|
ghc-options:
|
|
- "-foptimal-applicative-do"
|
|
- "-Wall"
|
|
- "-Werror"
|
|
- "-Wcompat"
|
|
- "-Wincomplete-record-updates"
|
|
- "-Wincomplete-uni-patterns"
|
|
- "-Wredundant-constraints"
|
|
- "-Wmissing-export-lists"
|
|
|
|
when:
|
|
- condition: flag(profiling)
|
|
cpp-options: -DPROFILING
|
|
|
|
- condition: flag(optimize-hasura)
|
|
then:
|
|
ghc-options:
|
|
- "-fexpose-all-unfoldings"
|
|
- "-O2"
|
|
else:
|
|
# we just want to build fast
|
|
ghc-options:
|
|
- "-O0"
|