mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Replace unused FAIL_EXPECTED with RMOLD
[SVN r13406]
This commit is contained in:
@@ -129,6 +129,7 @@ load_builtins()
|
||||
bind_builtin( "HDRMACRO" ,
|
||||
builtin_hdrmacro, 0, 0 ) );
|
||||
|
||||
# if 0
|
||||
/* FAIL_EXPECTED is an experimental built-in that is used to indicate */
|
||||
/* that the result of a target build action should be inverted (ok <=> fail) */
|
||||
/* this can be useful when performing test runs from Jamfiles.. */
|
||||
@@ -137,6 +138,9 @@ load_builtins()
|
||||
/* contact david.turner@freetype.org for more details.. */
|
||||
bind_builtin( "FAIL_EXPECTED" ,
|
||||
builtin_flags, T_FLAG_FAIL_EXPECTED, 0 );
|
||||
# endif
|
||||
|
||||
bind_builtin( "RMOLD" , builtin_flags, T_FLAG_RMOLD, 0 );
|
||||
|
||||
{
|
||||
char * args[] = { "string", "pattern", "replacements", "+", 0 };
|
||||
|
||||
@@ -206,7 +206,13 @@ make1b( TARGET *t )
|
||||
if( t->status == EXEC_CMD_FAIL && t->actions )
|
||||
{
|
||||
++counts->skipped;
|
||||
printf( "...skipped %s for lack of %s...\n", t->name, failed );
|
||||
if ( ( t->flags & ( T_FLAG_RMOLD | T_FLAG_NOTFILE ) ) == T_FLAG_RMOLD )
|
||||
{
|
||||
if( !unlink( t->boundname ) )
|
||||
printf( "...removing outdated %s\n", t->boundname );
|
||||
}
|
||||
else
|
||||
printf( "...skipped %s for lack of %s...\n", t->name, failed );
|
||||
}
|
||||
|
||||
if( t->status == EXEC_CMD_OK )
|
||||
@@ -359,6 +365,7 @@ make1d(
|
||||
/* status and signal our completion so make1c() can run the next */
|
||||
/* command. On interrupts, we bail heavily. */
|
||||
|
||||
# if 0 /* apparently not needed */
|
||||
if ( t->flags & T_FLAG_FAIL_EXPECTED )
|
||||
{
|
||||
/* invert execution result when FAIL_EXPECTED was applied */
|
||||
@@ -370,6 +377,7 @@ make1d(
|
||||
;
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
if( status == EXEC_CMD_FAIL && ( cmd->rule->actions->flags & RULE_IGNORE ) )
|
||||
status = EXEC_CMD_OK;
|
||||
|
||||
@@ -129,6 +129,7 @@ load_builtins()
|
||||
bind_builtin( "HDRMACRO" ,
|
||||
builtin_hdrmacro, 0, 0 ) );
|
||||
|
||||
# if 0
|
||||
/* FAIL_EXPECTED is an experimental built-in that is used to indicate */
|
||||
/* that the result of a target build action should be inverted (ok <=> fail) */
|
||||
/* this can be useful when performing test runs from Jamfiles.. */
|
||||
@@ -137,6 +138,9 @@ load_builtins()
|
||||
/* contact david.turner@freetype.org for more details.. */
|
||||
bind_builtin( "FAIL_EXPECTED" ,
|
||||
builtin_flags, T_FLAG_FAIL_EXPECTED, 0 );
|
||||
# endif
|
||||
|
||||
bind_builtin( "RMOLD" , builtin_flags, T_FLAG_RMOLD, 0 );
|
||||
|
||||
{
|
||||
char * args[] = { "string", "pattern", "replacements", "+", 0 };
|
||||
|
||||
@@ -206,7 +206,13 @@ make1b( TARGET *t )
|
||||
if( t->status == EXEC_CMD_FAIL && t->actions )
|
||||
{
|
||||
++counts->skipped;
|
||||
printf( "...skipped %s for lack of %s...\n", t->name, failed );
|
||||
if ( ( t->flags & ( T_FLAG_RMOLD | T_FLAG_NOTFILE ) ) == T_FLAG_RMOLD )
|
||||
{
|
||||
if( !unlink( t->boundname ) )
|
||||
printf( "...removing outdated %s\n", t->boundname );
|
||||
}
|
||||
else
|
||||
printf( "...skipped %s for lack of %s...\n", t->name, failed );
|
||||
}
|
||||
|
||||
if( t->status == EXEC_CMD_OK )
|
||||
@@ -359,6 +365,7 @@ make1d(
|
||||
/* status and signal our completion so make1c() can run the next */
|
||||
/* command. On interrupts, we bail heavily. */
|
||||
|
||||
# if 0 /* apparently not needed */
|
||||
if ( t->flags & T_FLAG_FAIL_EXPECTED )
|
||||
{
|
||||
/* invert execution result when FAIL_EXPECTED was applied */
|
||||
@@ -370,6 +377,7 @@ make1d(
|
||||
;
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
if( status == EXEC_CMD_FAIL && ( cmd->rule->actions->flags & RULE_IGNORE ) )
|
||||
status = EXEC_CMD_OK;
|
||||
|
||||
Reference in New Issue
Block a user