Boost logo

Boost-Build :

Subject: Re: [Boost-build] toolset requirement
From: Deane Yang (deane.yang_at_[hidden])
Date: 2008-12-06 10:54:13

(Recap: I am trying to put into the requirements of a particular project
the requirement "<target-os>windows:<toolset>gcc".)

I did a "bjam --debug-configuration" and compared it to "bjam
toolset=gcc --debug-configuration".

I discovered that in the first case bjam first reads user-config.jam and
therefore assumes I want to use msvc. It then processes my project's
Jamfile under that assumption, so it objects to the "<toolset>gcc"
requirement in the Jamfile.

In the second case, it still processes the msvc.jam, does everything
under that assumption, but just before ir processes the project Jamfile,
it switches to the gcc toolset. So the requirement is OK (but redundant).

So my conclusion is that I can't do what I want to do. I have to say,
however, that I find it odd that the command-line specification of the
toolset is processes so late in the game and that a lot of processing is
done with the default and therefore wrong toolset. But even if that
really needed to be fixed, I don't think it would help me with my wish.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at