llvm.eclass: Fix prepending LLVM path before system paths
authorMichał Górny <mgorny@gentoo.org>
Tue, 26 May 2020 07:41:40 +0000 (09:41 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 28 May 2020 11:41:22 +0000 (13:41 +0200)
commitf1e8874cc2de2055c3a07f7faf0c78d723106d06
treeaea07a9490031bd9cb93b7f26e28d5fff5826bd1
parent2f90db9a989471a41a152b7ccf59bb1c590d14e0
llvm.eclass: Fix prepending LLVM path before system paths

Do not prepend LLVM path before system path, in particular before
ccache/distcc paths.  Instead, prepend it before the first LLVM version
found in PATH, or append to the end if no LLVM is found in PATH.

Closes: https://bugs.gentoo.org/627726
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/llvm.eclass
eclass/tests/llvm.sh