Force using the correct C++ compiler via passing --with-cxx-compiler=
to the configure script. Otherwise, libclc defaults to using clang++
which can cause compatibility issues when clang++ defaults to libc++
and LLVM was built using gcc. This does not affect the compiler used
to build the runtime.
GIT_ECLASS="vcs-snapshot"
fi
-inherit python-any-r1 ${GIT_ECLASS}
+inherit python-any-r1 toolchain-funcs ${GIT_ECLASS}
DESCRIPTION="OpenCL C library"
HOMEPAGE="http://libclc.llvm.org/"
src_configure() {
./configure.py \
+ --with-cxx-compiler="$(tc-getCXX)" \
--with-llvm-config="$(type -P llvm-config)" \
--prefix="${EPREFIX}/usr" || die
}