mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
Apply must patch to 6.1.2 to fix compilation there too. Closes: https://bugs.gentoo.org/939920 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
14 lines
575 B
Diff
14 lines
575 B
Diff
There is no ROCM_LIBPATCH_VERSION outside of AMD farm.
|
|
Upstream bug: https://github.com/ROCm/clr/issues/112
|
|
--- a/opencl/amdocl/CMakeLists.txt
|
|
+++ b/opencl/amdocl/CMakeLists.txt
|
|
@@ -66,6 +66,8 @@ set(AMDOCL_LIB_VERSION_MAJOR "2")
|
|
set(AMDOCL_LIB_VERSION_MINOR "1")
|
|
if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
|
|
set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}.$ENV{ROCM_LIBPATCH_VERSION}")
|
|
+else()
|
|
+ set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}")
|
|
endif()
|
|
|
|
set_target_properties(amdocl PROPERTIES
|