[haiku-development] Re: question on planned build system feature -- 'generated' folder naming scheme

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 30 Jan 2009 16:17:46 +0100

On 2009-01-30 at 15:10:16 [+0100], François Revol <revol@xxxxxxx> wrote:
> > >   generated-x86-gcc2
> > >   generated-x86-gcc4
> > >   generated-ppc-gcc4
> > >   generated-m68k-gcc4
> > >
> >
> > Can profiles allow overriding "generated/" anyway ?
> > I currently rm generated; ln -s generated.x86 generated
> Actually, the existing system should mostly support using a single
> generated/, since the object folder has arch-specific dirs...
> but not gcc2 vs gcc4 though.

Yes, in principle that is indeed possible. The only issue is that 
generated/build/BuildConfig contains the configuration for the build, 
included target architecture, build tool paths to use, etc. ATM you have to 
reconfigure the output directory to switch to another architecture, 
respectively replace BuildConfig manually (or introduce a level of 
indirection controllable via an environmental variable). The default 
directories for the cross-tools will also clash, but you can build the 
tools manually in other directories, of course.

This could all be considered in the build system, but I don't see a real 
disadvantage of using separate output directories, so this isn't really 
something I would invest time in.

CU, Ingo

Other related posts: