Cabal: Use -O0 for development builds

Can be configured with `--flags=-production`

Time for full build on my machine: 2m -> 45s
This commit is contained in:
Atemu 2021-05-05 07:30:30 +02:00
parent a7f0014a53
commit cab398c945

View file

@ -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).