Skip to content

Commit fb64c7b

Browse files
committed
configure: Don't succeed if valgrind isn't available. Fixes rust-lang#18588
Based on @emanueLczirai's patch.
1 parent ce27d02 commit fb64c7b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

configure

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,15 @@ then
750750
fi
751751
fi
752752

753+
# By default the test suite *requires* valgrind. Detect it's absence.
754+
if [ -z "$CFG_VALGRIND" ]
755+
then
756+
if [ ! -z "$CFG_ENABLE_VALGRIND" ] || [ -z "$CFG_DISABLE_VALGRIND_RPASS" ]
757+
then
758+
err "valgrind not found, but needed. consider adding --disable-valgrind-rpass"
759+
fi
760+
fi
761+
753762
step_msg "looking for target specific programs"
754763

755764
probe CFG_ADB adb

0 commit comments

Comments
 (0)