Skip to content

Commit

Permalink
media-libs/mesa: Add llvm_check_deps() to enable slot matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Sep 28, 2017
1 parent f852c29 commit 9765332
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions media-libs/mesa/mesa-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,19 @@ x86? (
)
)"

llvm_check_deps() {
local flags=${MULTILIB_USEDEP}
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
then
flags+=",llvm_targets_AMDGPU(-)"
fi

if use opencl; then
has_version "sys-devel/clang[${flags}]" || return 1
fi
has_version "sys-devel/llvm[${flags}]"
}

pkg_setup() {
# warning message for bug 459306
if use llvm && has_version sys-devel/llvm[!debug=]; then
Expand Down

0 comments on commit 9765332

Please sign in to comment.