Boost logo

Boost-Build :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-08-04 06:58:15


Vladimir Prus schrieb:
> Martin, do you think it will be OK for you to use
>
> --user-config=/some/path/user-config.jam
>
> when invoking bjam, as opposed to setting BOOST_BUILD_PATH?

What about the small change to build-system.jam (patch attached)?

It will check the environment variable BOOST_USER_CONFIG and will
take this as the path to the user config file. It can still be
overidden by --user-config= cmd line parameter.

And it will leave semantics of BOOST_BUILD_PATH untouched.

Btw.: I stumbled over the help.jam file. I believe this file
needs some maintanance. I cannot see e.g. any reference to
--user-config cmd line.

Regards,
roland aka speedsnail

Index: tools/build/v2/build-system.jam
===================================================================
--- tools/build/v2/build-system.jam (revision 38436)
+++ tools/build/v2/build-system.jam (working copy)
@@ -126,6 +126,8 @@
 
 local user-config-path = [ MATCH ^--user-config=(.*) : $(argv) ] ;
 
+user-config-path ?= [ os.environ BOOST_USER_CONFIG ] ;
+
 if $(user-config-path)
 {
     if $(debug-config)


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