From cab398c945d6e7a890fa64071d37ddbabaaf6619 Mon Sep 17 00:00:00 2001 From: Atemu Date: Wed, 5 May 2021 07:30:30 +0200 Subject: [PATCH] Cabal: Use -O0 for development builds Can be configured with `--flags=-production` Time for full build on my machine: 2m -> 45s --- git-annex.cabal | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-annex.cabal b/git-annex.cabal index f227569a9d..a7ba9c46aa 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -394,6 +394,8 @@ Executable git-annex GHC-Options: -O2 -optlo-O2 else GHC-Options: -O2 + else + GHC-Options: -O0 -- Avoid linking with unused dynamic libaries. -- (Only tested on Linux).