Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-11-01 16:59:31


Vladimir Prus <ghost_at_[hidden]> writes:

> I've just made the "regression.py" test pass with msvc and borland, and I hope
> to run the entire Boost regression suite on those compilers soon. I have just
> one question now. V1 testing.jam contains:
>
> if $(gCURRENT_TOOLSET) in $(gcc-compilers)
> {
> on $(target)
> {
> RUN_PATH = [ unique $(p) $(CYGWIN_ROOT)/$(p) $(RUN_PATH)
> $(ENV_PATH) ] ;
> }
> }
>
> What is the purpose of this code?

Well, it's augmenting the list of directories that will be stuck into
PATH before the executable is run. The reason for adding
$(CYGWIN_ROOT)/$(p) is that if the developer of the Jamfile was using
Cygwin bjam, the absolute path "/foo/bar" actually maps to
"$(CYGWIN_ROOT)/foo/bar" for the person running the tests under
regular windows bjam. We're also tacking on $(ENV_PATH) so the
user's PATH environment variable may be considered.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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