Boost logo

Boost-Build :

Subject: Re: [Boost-build] <implicit-dependency> not working on Windows
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-12-27 04:01:45


On Thursday 25 December 2008 00:58:25 Steven Watanabe wrote:
> AMDG
>
> Ian Emmons wrote:
> > I have a jam file that works on Macintosh, and I'm now porting it to
> > Windows. This jam file generates some header files that are
> > subsequently used in the compilation of a lib target. The relevant
> > excerpt of my jam file is as follows:
> > <snip>
> > The problem I'm running into is that when bjam builds the lib target,
> > it does not invoke the four targets that generate the header files
> > first, in spite of the <implicit-dependency> declarations. However,
> > if I explicitly invoke bjam on those targets first, bjam correctly
> > builds them and a subsequent invocation of bjam on the lib target will
> > succeed.
> >
> > Any idea why the <implicit-dependency> declarations on the lib target
> > aren't working?
>
> It's a forward slashes vs. backslashes problem.
> Patch against the trunk attached.

I wonder if it will work if source uses windows separators, while host
is Unix. Ah, in that case the source won't compile in the first place.
But maybe, regexp replacing / with \ is more cleaner than path.native.
I don't care much -- in case you did not commit this patch already, please
commit it.

Thanks,
Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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