diff --git a/tbse b/tbse index 7db2d0b412c03481f8dea88f3f0a3940af7351eb..09b6d2017b512b9d32f6f577c2ff96b6e92043de 100755 --- a/tbse +++ b/tbse @@ -2671,6 +2671,13 @@ then echo "$VALGRIND $VALGRIND_OPTS" exit fi + + if [ "$RUNMODE" == "valgrind" ]; then + if [ -z `$BIN_C --version |grep 'VALGRIND is on'` ]; then + echo -e "You are trying to run binary_c through valgrind without building with valgrind support. On some architectures this will fail, so please configure binary_c with something like\n\nmeson -Dvalgrind=true builddir\n\nand rebuild.\n" + exit + fi + fi elif [ "$RUNMODE" == "massif" ]; then # run through valgrind's massif