Boost logo

Boost-Build :

From: Deane Yang (deane_yang_at_[hidden])
Date: 2005-12-15 14:30:04


Jared W. Robinson wrote:
> I've attempted to define my project build-dir as follows, and it works well
> on Windows x86 and Linux x86, but BBv2 chokes with this on Solaris. Is
> there a better way?
>
> import os ;
> osname = os.name ;
> osplat = os.platform ;
> mybuilddir = build_output/$(osname:L)-$(osplat:L) ;
>
> project : build-dir $(mybuilddir) ;
>

What a coincidence! I literally just ran into this problem myself.

>
> In looking at jam_src/jam.h, apparently OSPLAT isn't always defined --
> it's suppressed when an OS is "one-of-a-kind". I'm not sure that this
> philosophy makes sense. Wouldn't it be easier to /always/ define OSPLAT?
> It would certainly be more predictable.

I agree with this. It appears to be quite easy to fix this by deleting
the appropriate lines from jam.h, which will be my temporary solution.
What's the rationale for not defining OSPLAT when the OS is "one-of-a-kind"?


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk