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

2002-10-09 Thread Ashley Yakeley
At 2002-10-09 07:48, Hal Daume III wrote: >Is this the sort of thing you're looking for? Yes, thanks. I now have these in my Makefile: HCPOPTS = -prof -hisuf p_hi -osuf .p_o -auto-all +RTS -K32M -RTS depend-entries: $(HC_SRCS) $(HC) -M -optdep-s -optdepp $(HCF

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

2002-10-09 Thread Simon Peyton-Jones
A much more helpful reply than mine; I'll add it to the user manual. Simon | -Original Message- | From: Hal Daume III [mailto:[EMAIL PROTECTED]] | Sent: 09 October 2002 15:48 | To: Ashley Yakeley | Cc: Simon Peyton-Jones; GHC List | Subject: RE: Building Both "Regular" and "Profiling" Li

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

2002-10-09 Thread Hal Daume III
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 enab

Re: unsafePerformIO

2002-10-09 Thread David Sabel
- Original Message - From: "Simon Marlow" <[EMAIL PROTECTED]> Sent: Tuesday, September 24, 2002 2:58 PM Subject: RE: unsafePerformIO [...] > As for sharing, we currently don't provide any guarnatees, although we > should. It is currently the case that if you write > > a = unsafePerfor

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

2002-10-09 Thread Ashley Yakeley
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... -- Ashl

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

2002-10-09 Thread Simon Peyton-Jones
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. Simon | -Original Message- | From: Ashley Yakeley [mailto:[EMAIL PROTECTED]] | Sent: 09 October 2002 11:56 | To: GHC List | Subject: Buildi

Building Both "Regular" and "Profiling" Libraries

2002-10-09 Thread Ashley Yakeley
Is there a good strategy for building both regular and profiling variants of libraries? One of the problems is that the .hi files are not compatible, so I need to both kinds of those too. Should I be giving them separate names or something? How do people deal with this? Right now I do a 'make