Re: Disable optimization

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 04:39 +0100, Henning Thielemann wrote: > This could be achieved by shipping Cabal with a default settings file. > It's however difficult to add new default options in a later update > installation. Sure, cabal-install has a config file which contains defaults. Currently it

Re: Disable optimization

2008-02-20 Thread Henning Thielemann
On Wed, 20 Feb 2008, Lennart Kolmodin wrote: > Ross Paterson wrote: > > On Wed, Feb 20, 2008 at 05:16:22PM +0100, Henning Thielemann wrote: > >> I have upgraded to Cabal 1.2 while still using GHC-6.4.1. In the Haskore > >> project there is the module NewResolutions.lhs which let GHC run into > >

Re: Disable optimization

2008-02-20 Thread Henning Thielemann
On Wed, 20 Feb 2008, Johan Tibell wrote: > On Wed, Feb 20, 2008 at 5:16 PM, Henning Thielemann > <[EMAIL PROTECTED]> wrote: > > > > I have upgraded to Cabal 1.2 while still using GHC-6.4.1. In the Haskore > > project there is the module NewResolutions.lhs which let GHC run into > > extensive

Re: Disable optimization

2008-02-20 Thread Duncan Coutts
On Wed, 2008-02-20 at 17:16 +0100, Henning Thielemann wrote: > I have upgraded to Cabal 1.2 while still using GHC-6.4.1. In the Haskore > project there is the module NewResolutions.lhs which let GHC run into > extensive swapping (certainly due to excessive memory consumption) on > compilation w

Re: Disable optimization

2008-02-20 Thread Lennart Kolmodin
distribute your copy, a solution is to run ./setup configure --disable-optimization which will make all further building to be done without optimization. Adding a -0not to the .cabal or source file will make it permanent to all users of your code, disregarding of compiler version. If your mod

Re: Disable optimization

2008-02-20 Thread Ross Paterson
On Wed, Feb 20, 2008 at 05:16:22PM +0100, Henning Thielemann wrote: > I have upgraded to Cabal 1.2 while still using GHC-6.4.1. In the Haskore > project there is the module NewResolutions.lhs which let GHC run into > extensive swapping (certainly due to excessive memory consumption) on > comp

Re: Disable optimization

2008-02-20 Thread Johan Tibell
On Wed, Feb 20, 2008 at 5:16 PM, Henning Thielemann <[EMAIL PROTECTED]> wrote: > > I have upgraded to Cabal 1.2 while still using GHC-6.4.1. In the Haskore > project there is the module NewResolutions.lhs which let GHC run into > extensive swapping (certainly due to excessive memory consumption

Disable optimization

2008-02-20 Thread Henning Thielemann
I have upgraded to Cabal 1.2 while still using GHC-6.4.1. In the Haskore project there is the module NewResolutions.lhs which let GHC run into extensive swapping (certainly due to excessive memory consumption) on compilation when compiled with optimization. One can say, it cannot be compiled

Re: patch applied (cabal): add --enable-optimization/--disable-optimization config options (on by default)

2007-02-19 Thread Simon Marlow
Ian Lynagh wrote: On Tue, Feb 13, 2007 at 10:51:38AM +1100, Donald Bruce Stewart wrote: I think developers can be expected to read the docs and turn off optimisations if they like. Everyone else should get -O by default, to avoid bad press ;-) Since Duncan asked for opinions, I agree with Don.

Re: patch applied (cabal): add --enable-optimization/--disable-optimization config options (on by default)

2007-02-18 Thread Duncan Coutts
On Sun, 2007-02-18 at 17:18 +, Ian Lynagh wrote: > On Tue, Feb 13, 2007 at 10:51:38AM +1100, Donald Bruce Stewart wrote: > > > > I think developers can be expected to read the docs and turn off > > optimisations if they like. Everyone else should get -O by default, to > > avoid bad press ;-) >

Re: patch applied (cabal): add --enable-optimization/--disable-optimization config options (on by default)

2007-02-18 Thread Ian Lynagh
On Tue, Feb 13, 2007 at 10:51:38AM +1100, Donald Bruce Stewart wrote: > > I think developers can be expected to read the docs and turn off > optimisations if they like. Everyone else should get -O by default, to > avoid bad press ;-) Since Duncan asked for opinions, I agree with Don. Thanks Ian

Re: patch applied (cabal): add --enable-optimization/--disable-optimization config options (on by default)

2007-02-12 Thread Donald Bruce Stewart
duncan.coutts: > On Sun, 2007-02-11 at 16:46 -0800, Ross Paterson wrote: > > Sun Feb 11 16:45:13 PST 2007 Ross Paterson <[EMAIL PROTECTED]> > > * add --enable-optimization/--disable-optimization config options (on by > > default) > > > >

Re: patch applied (cabal): add --enable-optimization/--disable-optimization config options (on by default)

2007-02-12 Thread Duncan Coutts
On Sun, 2007-02-11 at 16:46 -0800, Ross Paterson wrote: > Sun Feb 11 16:45:13 PST 2007 Ross Paterson <[EMAIL PROTECTED]> > * add --enable-optimization/--disable-optimization config options (on by > default) > > M ./Distribution/Setup.hs +9 > M ./Distributio