mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
When no target is requested to be built via UPDATE, return status of last UPDATE_NOW.
[SVN r62635]
This commit is contained in:
@@ -1293,6 +1293,7 @@ LIST * builtin_update( PARSE * parse, FRAME * frame )
|
||||
}
|
||||
|
||||
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 @@ LIST * builtin_update_now( PARSE * parse, FRAME * frame )
|
||||
close (original_stdout);
|
||||
close (original_stderr);
|
||||
}
|
||||
|
||||
last_update_now_status = status;
|
||||
|
||||
if (status == 0)
|
||||
return list_new (L0, newstr ("ok"));
|
||||
|
||||
@@ -62,5 +62,6 @@ LIST *builtin_pad( PARSE *parse, FRAME *frame );
|
||||
LIST *builtin_precious( PARSE *parse, FRAME *frame );
|
||||
|
||||
void backtrace( FRAME *frame );
|
||||
extern int last_update_now_status;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -529,6 +529,10 @@ int main( int argc, char * * argv, char * * arg_environ )
|
||||
status |= make( targets_count, targets2, anyhow );
|
||||
free( targets );
|
||||
}
|
||||
else
|
||||
{
|
||||
status = last_update_now_status;
|
||||
}
|
||||
|
||||
PROFILE_EXIT( MAIN_MAKE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user