aboutsummaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2018-03-04 19:48:07 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2018-03-04 19:48:07 -0400
commit1c60e38edfdb01631ce0108872cbf9197c1bbdc6 (patch)
treec7b14bb9c875e4adb84998ec2ad0d20095d9d95e /Test.hs
parent5811a52b2b9356e12a5e6957132098df834ba015 (diff)
Dial back optimisation when building on arm
Prevent ghc and llc from running out of memory when optimising some files. Sean Whitton reported that doing this only in Test.hs was insufficient, the build still OOMed by the time it got to Test.hs. He had earlier found the build worked when these options are applied globally. See https://ghc.haskell.org/trac/ghc/ticket/14821 for why it needs -O1; once that's fixed it may suffice to use "GHC-Options: -O2 -optlo-O2", although it may also be that the -O1 prevents ghc from using/leaking as much memory. os(arm) should match armel, armhf, armeb, and arm. It probably also matches arm64, somewhat unfortunately since arm64 systems probably tend to have more memory. See list of arches in https://hackage.haskell.org/package/Cabal-1.22.2.0/docs/src/Distribution-System.html This commit was sponsored by Henrik Riomar on Patreon.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/Test.hs b/Test.hs
index 12999b48f..b0f418656 100644
--- a/Test.hs
+++ b/Test.hs
@@ -6,8 +6,6 @@
-}
{-# LANGUAGE CPP #-}
-{- Avoid optimising this file much, since it's large and does not need it._-}
-{-# OPTIONS_GHC -O1 -optlo-O2 #-}
module Test where