mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
dev-util/Tensile: Fix build with USE=client
Closes: https://bugs.gentoo.org/965842 Signed-off-by: Patrick Lauer <patrick@gentoo.org>
This commit is contained in:
parent
d74ba74136
commit
b50f921868
@ -61,6 +61,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-5.4.2-fix-arch-parse.patch
|
||||
"${FILESDIR}"/${PN}-6.0.2-expand-isa-compatibility.patch
|
||||
"${FILESDIR}"/${PN}-7.0.1-fix-install.patch
|
||||
"${FILESDIR}"/${PN}-7.1.0-cmake.patch
|
||||
)
|
||||
|
||||
CMAKE_USE_DIR="${S}/${PN}/Source"
|
||||
@ -106,12 +107,13 @@ src_configure() {
|
||||
|
||||
distutils-r1_src_configure
|
||||
if use client; then
|
||||
local targets="$(get_amdgpu_flags)"
|
||||
local mycmakeargs=(
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
-DTENSILE_USE_MSGPACK=ON
|
||||
-DTENSILE_USE_LLVM=ON
|
||||
-DTensile_LIBRARY_FORMAT=msgpack
|
||||
-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
|
||||
-DGPU_TARGETS="${targets::-1}"
|
||||
)
|
||||
cmake_src_configure
|
||||
fi
|
||||
10
dev-util/Tensile/files/Tensile-7.1.0-cmake.patch
Normal file
10
dev-util/Tensile/files/Tensile-7.1.0-cmake.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/Tensile/Source/CMakeLists.txt 2025-11-09 14:45:24.206159874 -0000
|
||||
+++ b/Tensile/Source/CMakeLists.txt 2025-11-09 14:47:23.555541567 -0000
|
||||
@@ -50,6 +50,7 @@
|
||||
endif()
|
||||
endif()
|
||||
|
||||
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
include(TensileSupportedArchitectures)
|
||||
set(GPU_TARGETS "" CACHE STRING "AMD GFX targets to cross-compile")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user