Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62635 - trunk/tools/jam/src
From: ghost_at_[hidden]
Date: 2010-06-09 03:13:00


Author: vladimir_prus
Date: 2010-06-09 03:12:59 EDT (Wed, 09 Jun 2010)
New Revision: 62635
URL: http://svn.boost.org/trac/boost/changeset/62635

Log:
When no target is requested to be built via UPDATE, return status of last UPDATE_NOW.

Text files modified:
   trunk/tools/jam/src/builtins.c | 3 +++
   trunk/tools/jam/src/builtins.h | 1 +
   trunk/tools/jam/src/jam.c | 4 ++++
   3 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/tools/jam/src/builtins.c
==============================================================================
--- trunk/tools/jam/src/builtins.c (original)
+++ trunk/tools/jam/src/builtins.c 2010-06-09 03:12:59 EDT (Wed, 09 Jun 2010)
@@ -1293,6 +1293,7 @@
 }
 
 extern int anyhow;
+int last_update_now_status;
 
 /* Takes a list of target names as first argument, and immediately
    updates them.
@@ -1355,6 +1356,8 @@
         close (original_stdout);
         close (original_stderr);
     }
+
+ last_update_now_status = status;
         
     if (status == 0)
         return list_new (L0, newstr ("ok"));

Modified: trunk/tools/jam/src/builtins.h
==============================================================================
--- trunk/tools/jam/src/builtins.h (original)
+++ trunk/tools/jam/src/builtins.h 2010-06-09 03:12:59 EDT (Wed, 09 Jun 2010)
@@ -62,5 +62,6 @@
 LIST *builtin_precious( PARSE *parse, FRAME *frame );
 
 void backtrace( FRAME *frame );
+extern int last_update_now_status;
 
 #endif

Modified: trunk/tools/jam/src/jam.c
==============================================================================
--- trunk/tools/jam/src/jam.c (original)
+++ trunk/tools/jam/src/jam.c 2010-06-09 03:12:59 EDT (Wed, 09 Jun 2010)
@@ -529,6 +529,10 @@
                 status |= make( targets_count, targets2, anyhow );
                 free( targets );
             }
+ else
+ {
+ status = last_update_now_status;
+ }
 
             PROFILE_EXIT( MAIN_MAKE );
         }


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