RE: Building Both "Regular" and "Profiling" Libraries

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 | | What I do is I have a few aliases: | | ghcm: ghc --make ... -osuf sun4.o -hisuf sun4.hi | ghcp: ghc --make ... -osuf sun4.prof.o -hisuf sun4.prof.hi -prof | -auto-all | | 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). | | Then, when I want a normal build, I do: | | ghcm Foo.hs -o Foo | | and for a profiled: | | ghcp Foo.hs -o Foo_prof | | It saves a lot of build time. | | Is this the sort of thing you're looking for? | | -- | Hal Daume III | | "Computer science is no more about computers | hdaume@isi.edu | than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume | | On Wed, 9 Oct 2002, Ashley Yakeley wrote: | | > At 2002-10-09 04:21, Simon Peyton-Jones wrote: | > | > >Yes there is. In your build.mk, set GhcLibWays = 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 | >
participants (1)
-
Simon Peyton-Jones