llvm.eclass: Add EAPI 7 API to get_llvm_prefix
authorMichał Górny <mgorny@gentoo.org>
Tue, 30 Apr 2019 05:31:02 +0000 (07:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 24 May 2019 04:59:14 +0000 (06:59 +0200)
commit6e4c784895f5a57e7b3a0891557a72346201f5d6
tree42b813d549c9d8cff62b415f32e638fc1a40dcba
parent7ab8909d90eee0739a2ab7ecea39769553fa9172
llvm.eclass: Add EAPI 7 API to get_llvm_prefix

Add two switches to get_llvm_prefix(), '-b' and '-d' to enable use
of LLVM API cross support.  '-b' is intended to be used whenever prefix
to CBUILD llvm-config is needed, and '-d' (the default) is intended
to be used whenever prefix to CHOST bindir is needed (to find CMake
modules).

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/llvm.eclass