pdb: meson-pdbgen.sh should return the return value of pdbgen.pl.

Otherwise even when the main script fails, hence generation of source files does
not end up correctly, the build continues (and likely fails later).
This commit is contained in:
Jehan 2023-02-14 15:32:07 +01:00
parent acdf5a3776
commit c6972eabde
1 changed files with 5 additions and 1 deletions

View File

@ -12,4 +12,8 @@ export BUILD builddir
cd "$top_srcdir"/pdb
$PERL pdbgen.pl app lib
echo "/* Generated on `date`. */" > $top_builddir/pdb/stamp-pdbgen.h
RET=$?
if [ $RET -eq 0 ]; then
echo "/* Generated on `date`. */" > $top_builddir/pdb/stamp-pdbgen.h
fi
exit $RET