Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-10-16 15:08:58


Author: grafik
Date: 2007-10-16 15:08:58 EDT (Tue, 16 Oct 2007)
New Revision: 40095
URL: http://svn.boost.org/trac/boost/changeset/40095

Log:
Allow specifying options with quotes, i.e. "--with-python=xyz", to work around the CMD shell using "=" as an argument separator.
Text files modified:
   trunk/tools/jam/src/build.bat | 4 ++--
   trunk/tools/jam/src/build.jam | 4 +++-
   2 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/tools/jam/src/build.bat
==============================================================================
--- trunk/tools/jam/src/build.bat (original)
+++ trunk/tools/jam/src/build.bat 2007-10-16 15:08:58 EDT (Tue, 16 Oct 2007)
@@ -40,7 +40,7 @@
 
 
 :Test_Option
-REM Tests wether the given string is in the form of an option: "-*"
+REM Tests wether the given string is in the form of an option: "--*"
 setlocal & endlocal
 setlocal
 set test=%1
@@ -48,7 +48,7 @@
 set test=%test:"###=%
 set test=%test:###"=%
 set test=%test:###=%
-if not [-] == [%test:~0,1%] set _error_=
+if not [-] == [%test:~1,1%] set _error_=
 endlocal
 goto :eof
 

Modified: trunk/tools/jam/src/build.jam
==============================================================================
--- trunk/tools/jam/src/build.jam (original)
+++ trunk/tools/jam/src/build.jam 2007-10-16 15:08:58 EDT (Tue, 16 Oct 2007)
@@ -55,13 +55,15 @@
         {
             --python-lib ?=
                 [ GLOB [ .path $(python-location) libs ] : "python$(v).lib" ]
- [ GLOB $(python-location) $(Path) $(PATH) $(path) : "python$(v).dll" ]
+ [ GLOB $(python-location) [ .path $(python-location) libs ]
+ $(Path) $(PATH) $(path) : "python$(v).dll" ]
                 ;
             if ! $(--python-lib[2])
             {
                 --python-lib = ;
             }
         }
+ --python-lib = $(--python-lib[1]) ;
     }
     else if $(OS) = MACOSX
     {


Boost-Commit 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