chore(profiling): switch to prof-auto-top to hopefully fix build

Also build only once, again
This commit is contained in:
Gregor Kleen 2021-02-01 09:26:59 +01:00
parent cb1e715e9b
commit 07bde5b012
5 changed files with 5 additions and 6 deletions

View File

@ -155,8 +155,7 @@ yesod:build:profile:
stage: yesod:build
script:
- stack build --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip
- stack build --profile --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip --ghc-options="-osuf p_o"
- stack build --profile --copy-bins --local-bin-path $(pwd)/bin --flag uniworx:-library-only --flag uniworx:-dev --flag uniworx:pedantic --no-strip
needs:
- frontend:build
before_script: *haskell

View File

@ -1,5 +1,5 @@
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-redundant-constraints -fprof-auto #-}
{-# OPTIONS_GHC -fno-warn-redundant-constraints -fprof-auto-top #-}
module Foundation.Authorization
( evalAccess, evalAccessFor, evalAccessWith

View File

@ -1,5 +1,5 @@
{-# LANGUAGE UndecidableInstances #-} -- for `MemcachedKeyFavourites`
{-# OPTIONS_GHC -fprof-auto #-}
{-# OPTIONS_GHC -fprof-auto-top #-}
module Foundation.SiteLayout
( siteLayout', siteLayout

View File

@ -1,4 +1,4 @@
{-# OPTIONS_GHC -O0 -fasm -fprof-auto #-}
{-# OPTIONS_GHC -O0 -fasm -fprof-auto-top #-}
module Foundation.Yesod.Middleware
( yesodMiddleware

View File

@ -1,4 +1,4 @@
{-# OPTIONS_GHC -fprof-auto #-}
{-# OPTIONS_GHC -fprof-auto-top #-}
module Jobs
( module Types