diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 22:11:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 22:11:03 +0100 |
commit | 2929788def9a92c1eb237eed93fbdb0c02838bbf (patch) | |
tree | 166b01591366d3479084ea774c888bc84aaa8d4f /eclass/flag-o-matic.eclass | |
parent | ab499d7cfb9ad23e83cf7a4f5052bdf1b4c42030 (diff) |
Revert "gentoo resync : 13.10.2019"
This reverts commit ab499d7cfb9ad23e83cf7a4f5052bdf1b4c42030.
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index f882b09d6219..89b259cc222f 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -436,13 +436,11 @@ test-flag-PROG() { [[ -z ${comp} || -z $1 ]] && return 1 # verify selected compiler exists before using it - comp=($(tc-get${comp})) - # 'comp' can already contain compiler options. - # 'type' needs a binary name - type -p ${comp[0]} >/dev/null || return 1 + comp=$(tc-get${comp}) + type -p ${comp} >/dev/null || return 1 local cmdline=( - "${comp[@]}" + ${comp} # Clang will warn about unknown gcc flags but exit 0. # Need -Werror to force it to exit non-zero. -Werror |