meson: use builddir instead of build

Use the -C option instead of changing the dir, change the build folder to builddir.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit
2020-04-16 23:31:03 +02:00
committed by afayaz-feral
parent ce6485ef97
commit 115f1ecdbd
5 changed files with 7 additions and 11 deletions

View File

@ -3,11 +3,8 @@
# Exit on failure
set -e
# Build directly
cd build/
# Collect scan-build output
ninja scan-build | tee /tmp/scan-build-results.txt
ninja scan-build -C builddir | tee /tmp/scan-build-results.txt
# Invert the output - if this string exists it's a fail
! grep -E '[0-9]+ bugs? found.' /tmp/scan-build-results.txt