summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-13 16:22:31 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-15 23:32:38 -0400
commit20b4d5ecabc59062b7a841ce20b631364d8f8645 (patch)
treedc8d6aa17e7e58c089f667d1f27a99da2edf8916 /hadrian
parent5da6c86f7b1304af3c314b3f9c0b007d6508c427 (diff)
downloadhaskell-20b4d5ecabc59062b7a841ce20b631364d8f8645.tar.gz
Disable optimisation when building Cabal lib for stage0
This disables optimisation when building Cabal for Hadrian and stage0 `ghc-cabal`. Cabal is performance critical in neither case nor will any performance difference here be visible to the end-user. See #16817.
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/cabal.project6
1 files changed, 6 insertions, 0 deletions
diff --git a/hadrian/cabal.project b/hadrian/cabal.project
index 176d1eef94..d9c329141f 100644
--- a/hadrian/cabal.project
+++ b/hadrian/cabal.project
@@ -1,2 +1,8 @@
packages: ./
../libraries/Cabal/Cabal/
+
+# N.B. Compile with -O0 since this is not a performance-critical executable
+# and the Cabal takes nearly twice as long to build with -O1. See #16817.
+package Cabal
+ optimization: False
+