1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 inherit cmake-multilib llvm
9 DESCRIPTION="LLVM-based OpenCL compiler targetting Intel Gen graphics hardware"
10 HOMEPAGE="https://github.com/intel/intel-graphics-compiler"
11 SRC_URI="https://github.com/intel/${PN}/archive/igc-${PV}.tar.gz -> ${P}.tar.gz"
17 COMMON="sys-devel/llvm:8=[${MULTILIB_USEDEP}]
18 dev-libs/opencl-clang:8=[${MULTILIB_USEDEP}]"
25 "${FILESDIR}"/${PN}-1.0.9-no_Werror.patch
28 S="${WORKDIR}"/${PN}-igc-${PV}
30 multilib_src_configure() {
32 -DCMAKE_LIBRARY_PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})/$(get_libdir)
33 -DIGC_OPTION__FORCE_SYSTEM_LLVM=ON
34 -DIGC_PREFERRED_LLVM_VERSION=${LLVM_MAX_SLOT}