Building Both "Regular" and "Profiling" Libraries

Simon Peyton-Jones simonpj@microsoft.com
Wed, 9 Oct 2002 16:26:47 +0100


A much more helpful reply than mine; I'll add it to the user manual.

Simon

| -----Original Message-----
| From: Hal Daume III [mailto:hdaume@ISI.EDU]
| Sent: 09 October 2002 15:48
| To: Ashley Yakeley
| Cc: Simon Peyton-Jones; GHC List
| Subject: RE: Building Both "Regular" and "Profiling" Libraries
|=20
| What I do is I have a few aliases:
|=20
|   ghcm: ghc --make ... -osuf sun4.o -hisuf sun4.hi
|   ghcp: ghc --make ... -osuf sun4.prof.o -hisuf sun4.prof.hi -prof
|               -auto-all
|=20
| These are set in my .cshrc file so the "sun4" is actually the $ARCH
| variable of the machine I'm currently on (this enables me to have i686
and
| sun4 binaries coexisting in a friendly manner).
|=20
| Then, when I want a normal build, I do:
|=20
|    ghcm Foo.hs -o Foo
|=20
| and for a profiled:
|=20
|    ghcp Foo.hs -o Foo_prof
|=20
| It saves a lot of build time.
|=20
| Is this the sort of thing you're looking for?
|=20
| --
| Hal Daume III
|=20
|  "Computer science is no more about computers    | hdaume@isi.edu
|   than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume
|=20
| On Wed, 9 Oct 2002, Ashley Yakeley wrote:
|=20
| > At 2002-10-09 04:21, Simon Peyton-Jones wrote:
| >
| > >Yes there is.  In your build.mk, set GhcLibWays =3D p
| > >
| > >This is discussed a lot in the Building Guide, which I commend to
you if
| > >you are building GHC.
| >
| > I'm not building GHC. I just want to build my own stuff and I don't
have
| > a build.mk...
| >
| > --
| > Ashley Yakeley, Seattle WA
| >
| > _______________________________________________
| > Glasgow-haskell-users mailing list
| > Glasgow-haskell-users@haskell.org
| > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
| >