2
0
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:
Vladimir Prus
2010-06-09 07:12:59 +00:00
parent 9c9c533b93
commit 121732b4b6
3 changed files with 8 additions and 0 deletions

View File

@@ -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"));

View File

@@ -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

View File

@@ -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 );
}