$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2005-06-02 11:39:47
Vladimir Prus <ghost_at_[hidden]> writes:
> On Thursday 02 June 2005 09:47, Vladimir Prus wrote:
>
>> > And with your patch, nothing works:
>> >
>> > bjam msvc-8.0
>> > site-config.jam: No such file or directory
>>
>> BTW, what's this error message is about? Could it be related with your
>> recent changes?
>
> Figured out and fixed. In several places, the global value of BOOST_BUILD_PATH
> was manupulated. When loading user-config.jam and site-config.jam, the value
> of BOOST_BUILD_PATH inside .ENVIRON was used, and it did not include changes
> made to the global value, so some paths (like root of Boost.Build) were
> missing.
This was certainly my fault, but there's a design practice that could
have prevented it: do not change the values of parameters to functions
(or to programs).
IOW, if you want to make something that's not quite the same as the
BOOST_BUILD_PATH environment variable, call it something else. Using
a functional style it's harder to make mistakes, and easier to keep
track of how the state of the program evolves.
-- Dave Abrahams Boost Consulting www.boost-consulting.com