From 07bde5b0128bd2d2906f5a0cf0b8d138831adf74 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 1 Feb 2021 09:26:59 +0100 Subject: [PATCH] chore(profiling): switch to prof-auto-top to hopefully fix build Also build only once, again --- .gitlab-ci.yml | 3 +-- src/Foundation/Authorization.hs | 2 +- src/Foundation/SiteLayout.hs | 2 +- src/Foundation/Yesod/Middleware.hs | 2 +- src/Jobs.hs | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdf19e457..d542369f3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/src/Foundation/Authorization.hs b/src/Foundation/Authorization.hs index ccfa3b84c..d6bd3a9ee 100644 --- a/src/Foundation/Authorization.hs +++ b/src/Foundation/Authorization.hs @@ -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 diff --git a/src/Foundation/SiteLayout.hs b/src/Foundation/SiteLayout.hs index c21e114c5..770e08f42 100644 --- a/src/Foundation/SiteLayout.hs +++ b/src/Foundation/SiteLayout.hs @@ -1,5 +1,5 @@ {-# LANGUAGE UndecidableInstances #-} -- for `MemcachedKeyFavourites` -{-# OPTIONS_GHC -fprof-auto #-} +{-# OPTIONS_GHC -fprof-auto-top #-} module Foundation.SiteLayout ( siteLayout', siteLayout diff --git a/src/Foundation/Yesod/Middleware.hs b/src/Foundation/Yesod/Middleware.hs index 473f50de3..8f2916412 100644 --- a/src/Foundation/Yesod/Middleware.hs +++ b/src/Foundation/Yesod/Middleware.hs @@ -1,4 +1,4 @@ -{-# OPTIONS_GHC -O0 -fasm -fprof-auto #-} +{-# OPTIONS_GHC -O0 -fasm -fprof-auto-top #-} module Foundation.Yesod.Middleware ( yesodMiddleware diff --git a/src/Jobs.hs b/src/Jobs.hs index 4aca345e8..81c02e2e2 100644 --- a/src/Jobs.hs +++ b/src/Jobs.hs @@ -1,4 +1,4 @@ -{-# OPTIONS_GHC -fprof-auto #-} +{-# OPTIONS_GHC -fprof-auto-top #-} module Jobs ( module Types