Re: darcs patch: When booting from HC files, search includes for headers

2009-11-12 Thread Matthias Kilian
On Thu, Nov 12, 2009 at 09:43:42AM +, Simon Marlow wrote: > >Would it be ok to move the -I$(GHC_INCLUDE_DIR) portion to ghc/ghc.mk? > > > >For example, add this one to the BootingFromHC section of ghc/ghc.mk: > > > > ghc_CC_OPTS += -I$(GHC_INCLUDE_DIR) > > I take it back, I think I underst

Re: darcs patch: When booting from HC files, search includes for headers

2009-11-12 Thread Matthias Kilian
On Thu, Nov 12, 2009 at 03:24:32PM +, Simon Marlow wrote: > On 08/11/2009 18:18, Matthias Kilian wrote: > >Sun Nov 8 12:02:25 CET 2009 Matthias Kilian > > * When booting from HC files, search includes for headers > > I just committed a version of this. I believe th

Re: darcs patch: When booting from HC files, search includes for headers

2009-11-12 Thread Simon Marlow
On 08/11/2009 18:18, Matthias Kilian wrote: Sun Nov 8 12:02:25 CET 2009 Matthias Kilian * When booting from HC files, search includes for headers I just committed a version of this. I believe that's all your patches in now, right? Cheers,

Re: darcs patch: When booting from HC files, search includes for headers

2009-11-12 Thread Simon Marlow
On 11/11/2009 23:02, Matthias Kilian wrote: On Mon, Nov 09, 2009 at 10:53:18AM +, Simon Marlow wrote: ifeq "$(BootingFromHc)" "YES" -SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER -D__GLASGOW_HASKELL__=$(ProjectVersionInt) +SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -DNO_REGS -DUSE_MINIINTERPRET

Re: darcs patch: When booting from HC files, search includes for headers

2009-11-11 Thread Matthias Kilian
On Mon, Nov 09, 2009 at 10:53:18AM +, Simon Marlow wrote: > ifeq "$(BootingFromHc)" "YES" > -SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER > -D__GLASGOW_HASKELL__=$(ProjectVersionInt) > +SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -DNO_REGS -DUSE_MINIINTERPRETER > -D__GLASGOW_HASKELL__=$(ProjectVer

Re: darcs patch: Some rules for booting from hc files

2009-11-10 Thread Matthias Kilian
s one (I think you already said it's ok): Sun Nov 8 20:01:39 CET 2009 Matthias Kilian * Don't try to rebuild compiler/primop-*.hs-incl when BootingFromHc And this one (or rather a cleaner replacement of it, since probably only hschooks.c is affected): Sun Nov 8 12:02:25 CET 2009 Ma

Re: darcs patch: Some rules for booting from hc files

2009-11-10 Thread Simon Marlow
On 09/11/2009 20:50, Matthias Kilian wrote: On Mon, Nov 09, 2009 at 08:29:25PM +0100, Matthias Kilian wrote: The rules in hs-suffix-rules-srcdir.mk didn't get pulled in by rts/ghc.mk. I'll retry with adding hs-suffix-rules-srcdir to it. With the attached patch, a normal build and a build boots

Re: darcs patch: Some rules for booting from hc files

2009-11-09 Thread Matthias Kilian
On Mon, Nov 09, 2009 at 08:29:25PM +0100, Matthias Kilian wrote: > The rules in hs-suffix-rules-srcdir.mk didn't get pulled in by > rts/ghc.mk. I'll retry with adding hs-suffix-rules-srcdir to it. With the attached patch, a normal build and a build bootstrapping from hc files are happy[1]. Ciao,

Re: darcs patch: Some rules for booting from hc files

2009-11-09 Thread Matthias Kilian
On Mon, Nov 09, 2009 at 10:58:24AM +, Simon Marlow wrote: > [Some rules for booting from hc files > Matthias Kilian **20091108110827 > Ignore-this: bf6a3f7db25010b2de013f98377cbd92 > ] hunk ./rules/cmm-suffix-rules.mk 51 > > endif > > +## For booting from .

Re: darcs patch: Some rules for booting from hc files

2009-11-09 Thread Matthias Kilian
On Mon, Nov 09, 2009 at 10:58:24AM +, Simon Marlow wrote: > > On 08/11/2009 18:30, Matthias Kilian wrote: > endif > > +## For booting from .hc files. > +$1/$2/build/%.$$($3_osuf) : $1/%.hc > + "$$(MKDIRHIER)" $$(dir $$@) > + "$$(CC)"

Re: darcs patch: When booting from HC files, search includes for headers

2009-11-09 Thread Matthias Kilian
On Mon, Nov 09, 2009 at 10:53:18AM +, Simon Marlow wrote: > >Sun Nov 8 12:02:25 CET 2009 Matthias Kilian > > * When booting from HC files, search includes for headers > > ifeq "$(BootingFromHc)" "YES" > -SRC_CC_OPTS += -DNO_REGS -DUSE

Re: darcs patch: Some rules for booting from hc files

2009-11-09 Thread Simon Marlow
On 08/11/2009 18:30, Matthias Kilian wrote: Sun Nov 8 12:08:27 CET 2009 Matthias Kilian * Some rules for booting from hc files [Some rules for booting from hc files Matthias Kilian **20091108110827 Ignore-this: bf6a3f7db25010b2de013f98377cbd92 ] hunk ./rules/cmm-suffix-rules.mk 51

Re: darcs patch: When booting from HC files, search includes for headers

2009-11-09 Thread Simon Marlow
On 08/11/2009 18:18, Matthias Kilian wrote: Sun Nov 8 12:02:25 CET 2009 Matthias Kilian * When booting from HC files, search includes for headers ifeq "$(BootingFromHc)" "YES" -SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER -D__GLASGOW_HASKELL__=$(ProjectVersionInt

darcs patch: Some rules for booting from hc files

2009-11-08 Thread Matthias Kilian
Sun Nov 8 12:08:27 CET 2009 Matthias Kilian * Some rules for booting from hc files New patches: [Some rules for booting from hc files Matthias Kilian **20091108110827 Ignore-this: bf6a3f7db25010b2de013f98377cbd92 ] hunk ./rules/cmm-suffix-rules.mk 51 endif +## For booting from .hc

darcs patch: When booting from HC files, search includes for headers

2009-11-08 Thread Matthias Kilian
Sun Nov 8 12:02:25 CET 2009 Matthias Kilian * When booting from HC files, search includes for headers New patches: [When booting from HC files, search includes for headers Matthias Kilian **20091108110225 Ignore-this: 97b69c0fe499f8c1cbbd8cbf92589e11 ] hunk ./ghc.mk 1041 endif ifeq

Re: Booting from HC files

2008-02-08 Thread Matthias Kilian
On Tue, Feb 05, 2008 at 09:30:39AM +, Simon Marlow wrote: > If using the generated Makefiles is too hard for bootstrapping, then by > all means build an alternative solution using hand-written Makefiles or > whatever. Ok, sounds like a plan. > >- I need a simple way to get transitive inter-

Re: Booting from HC files

2008-02-05 Thread Simon Marlow
Matthias Kilian wrote: I'm currently trying to bring back HC bootstrapping, and I'd some kind of success, but only with really horrible hacks on libraries/Makefile.local, the Cabal Makefile template, some bits in mk, and libraries/Makefile itself. FYI the current state is that the HC build start

Booting from HC files

2008-02-04 Thread Matthias Kilian
Hi, I'm currently trying to bring back HC bootstrapping, and I'd some kind of success, but only with really horrible hacks on libraries/Makefile.local, the Cabal Makefile template, some bits in mk, and libraries/Makefile itself. FYI the current state is that the HC build starts well for base, old-