From 5a165c60b9b8c4847067cb83b4be7da785d01f93 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 28 Sep 2019 08:17:07 +0100 Subject: gentoo resync : 28.09.2019 --- eclass/flag-o-matic.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eclass/flag-o-matic.eclass') diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 3b32bd9d6319..89b259cc222f 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -435,8 +435,12 @@ test-flag-PROG() { [[ -z ${comp} || -z $1 ]] && return 1 + # verify selected compiler exists before using it + comp=$(tc-get${comp}) + type -p ${comp} >/dev/null || return 1 + local cmdline=( - $(tc-get${comp}) + ${comp} # Clang will warn about unknown gcc flags but exit 0. # Need -Werror to force it to exit non-zero. -Werror -- cgit v1.2.3