Index: apps/build.tcl =================================================================== diff -u -N -ra963e8896fd07c345ccfa034cbd043344edbf083 -re97d7fb155f32926cbc9e90f7a23f84450381a10 --- apps/build.tcl (.../build.tcl) (revision a963e8896fd07c345ccfa034cbd043344edbf083) +++ apps/build.tcl (.../build.tcl) (revision e97d7fb155f32926cbc9e90f7a23f84450381a10) @@ -63,15 +63,16 @@ try { exec >@stdout 2>@stderr bash -lc "make test" } trap CHILDSTATUS {- opts} { - puts TEST=$opts + lassign [dict get $opts -errorcode] -> pid code + # when make encountered a build error, we expect to see an + # error code of 2. Any other, non-make error code will be + # ignored for the time being; assuming the test suite + # completed. + if {$code == 2} {exit 1} + puts stderr "WARNING: make failed with unexpected error code: $opts" } - try { - exec >@stdout 2>@stderr bash -lc "make install" - } trap CHILDSTATUS {- opts} { - puts INSTALL=$opts - } - + exec >@stdout 2>@stderr bash -lc "make install" } nmake-tea { exec >@stdout 2>@stderr nmake -nologo -f makefile.vc TCLDIR=$tclRoot release