mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
llvm-runtimes/openmp-spirv64-intel: New package, 23.0.0.9999
Offloading library for spirv64-intel devices. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>llvm@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">llvm/llvm-project</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
inherit cmake flag-o-matic llvm.org
|
||||
|
||||
DESCRIPTION="OpenMP target library for spirv64 Intel devices"
|
||||
HOMEPAGE="https://openmp.llvm.org"
|
||||
|
||||
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
|
||||
SLOT="0/${LLVM_SOABI}"
|
||||
|
||||
BDEPEND="
|
||||
~llvm-core/clang-${PV}:${LLVM_MAJOR}[llvm_targets_SPIRV]
|
||||
llvm-core/lld:${LLVM_MAJOR}[llvm_targets_SPIRV]
|
||||
"
|
||||
|
||||
LLVM_COMPONENTS=(
|
||||
runtimes openmp cmake llvm/{cmake,utils/llvm-lit} libc/shared
|
||||
offload/include
|
||||
)
|
||||
llvm.org_set_globals
|
||||
|
||||
src_configure() {
|
||||
local -x CC=${CHOST}-clang-${LLVM_MAJOR}
|
||||
local -x CXX=${CHOST}-clang++-${LLVM_MAJOR}
|
||||
local triple=${PN#openmp-}
|
||||
filter-flags '-m*'
|
||||
strip-unsupported-flags
|
||||
|
||||
# https://github.com/llvm/llvm-project/issues/186598
|
||||
filter-ldflags '-Wl,*'
|
||||
|
||||
local mycmakeargs=(
|
||||
-DLLVM_DEFAULT_TARGET_TRIPLE=${triple}
|
||||
-DLLVM_ENABLE_RUNTIMES=openmp
|
||||
-DOPENMP_INSTALL_LIBDIR="$(get_libdir)/${triple}"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -25,6 +25,7 @@ llvm-runtimes/libgcc
|
||||
llvm-runtimes/openmp
|
||||
llvm-runtimes/openmp-amdgcn
|
||||
llvm-runtimes/openmp-nvptx64
|
||||
llvm-runtimes/openmp-spirv64-intel
|
||||
llvm-runtimes/offload
|
||||
llvm-core/clang-linker-config
|
||||
llvm-runtimes/clang-rtlib-config
|
||||
|
||||
Reference in New Issue
Block a user