Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86565 - trunk/tools/build/v2/tools
From: jurko.gospodnetic_at_[hidden]
Date: 2013-11-05 04:33:37


Author: jurko
Date: 2013-11-05 04:33:37 EST (Tue, 05 Nov 2013)
New Revision: 86565
URL: http://svn.boost.org/trac/boost/changeset/86565

Log:
Stylistic change - jam construct like 'if $(var)-is-not-empty' does not actually test whether the $(var) variable is not empty and instead tests whether the variable is defined at all to any value. Specifically, if the variable is defined as an empty string, the test will still pass.

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

Modified: trunk/tools/build/v2/tools/msvc.jam
==============================================================================
--- trunk/tools/build/v2/tools/msvc.jam Tue Nov 5 04:33:27 2013 (r86564)
+++ trunk/tools/build/v2/tools/msvc.jam 2013-11-05 04:33:37 EST (Tue, 05 Nov 2013) (r86565)
@@ -901,9 +901,9 @@
 
                 setup-$(c) = [ feature.get-values <setup-$(c)> : $(options) ] ;
 
- if ! $(setup-$(c))-is-not-empty
+ if ! $(setup-$(c))-is-defined
                 {
- if $(global-setup)-is-not-empty
+ if $(global-setup)-is-defined
                     {
                         setup-$(c) = $(global-setup) ;
 


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