RE: Adding a "release" setting in build.mk.sample (and some other build system questions)

2016-01-30 Thread Harry .
> Date: Fri, 29 Jan 2016 17:44:56 +0100 > Subject: Re: Adding a "release" setting in build.mk.sample (and some > other build system questions) > From: thomasmied...@gmail.com > To: volderm...@hotmail.com > CC: ghc-devs@haskell.org > > The default (and thus release) `SRC_HC_OPTS` uses

Re: Adding a "release" setting in build.mk.sample (and some other build system questions)

2016-01-29 Thread Harry .
> https://ghc.haskell.org/trac/ghc/wiki/MakingReleases#Makingthebinarybuilds > https://ghc.haskell.org/trac/ghc/wiki/Building/Using#Buildconfiguration So the mysterious SRC_HC_OPTS = -O -H64m which appears in every build flavour isn't used for the release build?

Re: Adding a "release" setting in build.mk.sample (and some other build system questions)

2016-01-29 Thread Thomas Miedema
The default (and thus release) `SRC_HC_OPTS` uses `-H32m` (see mk/ config.mk.in). Maybe you want to run some tests to see if it makes a difference on the total build time? I suggest also measuring without any `-H` flag, with just `-H` (see commit below), and with `-H1G` or some other large

Adding a "release" setting in build.mk.sample (and some other build system questions)

2016-01-28 Thread Ömer Sinan Ağacan
I'm trying to figure out how to generate a release build. I thought it should be "perf" setting, but then I realized ghc-stage1 is called with -O (instead of -O2) when building stage2 with perf setting. So either perf is not the release setting, or I need stage3 which is probably compiled with

Re: Adding a "release" setting in build.mk.sample (and some other build system questions)

2016-01-28 Thread Thomas Miedema
https://ghc.haskell.org/trac/ghc/wiki/MakingReleases#Makingthebinarybuilds https://ghc.haskell.org/trac/ghc/wiki/Building/Using#Buildconfiguration On Fri, Jan 29, 2016 at 12:50 AM, Ömer Sinan Ağacan wrote: > I'm trying to figure out how to generate a release build. I