2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Fix non-zero exit code on Jam parsing errors (#538)

Prevent resetting the non-Zero status returned from yyanyerrors
on any parsing errors.
This commit is contained in:
Mateusz Łoskot
2020-02-22 22:24:06 +01:00
committed by GitHub
parent 4dea1934c6
commit b02e4c4e50

View File

@@ -275,6 +275,7 @@ int main( int argc, char * * argv, char * * arg_environ )
b2::system_info sys_info;
saved_argv0 = argv[ 0 ];
last_update_now_status = 0;
BJAM_MEM_INIT();
@@ -650,6 +651,8 @@ int main( int argc, char * * argv, char * * arg_environ )
}
status = yyanyerrors();
if ( status && !last_update_now_status )
last_update_now_status = status;
/* Manually touch -t targets. */
for ( n = 0; ( s = getoptval( optv, 't', n ) ); ++n )