mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-19 00:09:37 +03:00
toolchain.eclass: handle missing Valgrind headers
I saw this on a i686-w64-mingw32 cross w/ trunk + USE=valgrind. Followup
to d8c55bb85b.
Copy the libgomp check.
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1801,7 +1801,11 @@ toolchain_src_configure() {
|
||||
# We patch this in w/ PR66487-object-lifetime-instrumentation-for-Valgrind.patch,
|
||||
# so it may not always be available.
|
||||
if grep -q -- '--enable-valgrind-interop' "${S}"/libgcc/configure.ac ; then
|
||||
confgcc+=( $(use_enable valgrind valgrind-interop) )
|
||||
if ! is_crosscompile || $(tc-getCPP ${CTARGET}) -E - <<<"#include <valgrind/memcheck.h>" >& /dev/null ; then
|
||||
confgcc+=( $(use_enable valgrind valgrind-interop) )
|
||||
else
|
||||
confgcc+=( --disable-valgrind-interop )
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user