Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2007-10-14 05:55:41


Author: vladimir_prus
Date: 2007-10-14 05:55:41 EDT (Sun, 14 Oct 2007)
New Revision: 40008
URL: http://svn.boost.org/trac/boost/changeset/40008

Log:
   * common.jam (get-invocation-command): When
   we cannot find a specified tool, return
   tool's name so that the command line looks sane,
   even if it does not work.
   (handle-options): Report which command will
   be used, in debug mode.

Text files modified:
   trunk/tools/build/v2/tools/common.jam | 11 +++++++----
   1 files changed, 7 insertions(+), 4 deletions(-)

Modified: trunk/tools/build/v2/tools/common.jam
==============================================================================
--- trunk/tools/build/v2/tools/common.jam (original)
+++ trunk/tools/build/v2/tools/common.jam 2007-10-14 05:55:41 EDT (Sun, 14 Oct 2007)
@@ -250,6 +250,7 @@
                 ECHO "warning: toolset $(toolset) initialization: can't find tool $(tool)" ;
                 ECHO "warning: initialized from" [ errors.nearest-user-location ] ;
             }
+ command = $(tool) ;
         }
     }
     else
@@ -268,10 +269,7 @@
             command = $(user-provided-command) ;
         }
     }
- if ! $(command)
- {
- command = $(user-provided-command) ;
- }
+
     return $(command) ;
 }
 
@@ -378,6 +376,11 @@
 # - OPTIONs for link to the value of <linkflags> in options
 rule handle-options ( toolset : condition * : command * : options * )
 {
+ if $(.debug-configuration)
+ {
+ ECHO "notice: will use '$(command)' for $(toolset), condition $(condition:E=(empty))" ;
+ }
+
     # The last parameter ('true') says it's OK to set flags for another
     # module,
     toolset.flags $(toolset) CONFIG_COMMAND $(condition) : $(command) : unchecked ;


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