mirror of
https://github.com/rust-lang/rust
synced 2024-10-02 23:04:50 +00:00
configure: Fail iff valgrind is explicitly requested but not available
This commit is contained in:
parent
b982a751f4
commit
fc7faafae7
6
configure
vendored
6
configure
vendored
|
@ -737,9 +737,15 @@ fi
|
|||
# only disabled if you opt out.
|
||||
if [ -z "$CFG_VALGRIND" ]
|
||||
then
|
||||
# If the user has explicitly asked for valgrind tests, then fail
|
||||
if [ -n "$CFG_ENABLE_VALGRIND" ] && [ -n "$CFG_ENABLE_VALGRIND_PROVIDED" ]
|
||||
then
|
||||
err "No valgrind present, but valgrind tests explicitly requested"
|
||||
else
|
||||
CFG_DISABLE_VALGRIND_RPASS=1
|
||||
putvar CFG_DISABLE_VALGRIND_RPASS
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -z "$CFG_GDB" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue