File: 0017-optional-hipconfig-in-build-depends.patch

package info (click to toggle)
rocm-hipamd 6.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,040 kB
  • sloc: cpp: 211,057; ansic: 35,860; sh: 755; python: 623; perl: 275; asm: 166; makefile: 27
file content (23 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Cordell Bloor <cgmb@debian.org>
Date: Sun, 20 Jul 2025 18:34:24 +0000
Subject: optional hipconfig in build-depends

This patch is needed to break the cycle between src:rocm-llvm and
src:rocm-hipamd.

Forwarded: no
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,7 +55,7 @@
     endif()
     message(STATUS "HIPCC Binary Directory: ${HIPCC_BIN_DIR}")
 
-    if(NOT EXISTS ${HIPCC_BIN_DIR}/${HIPCONFIG_EXECUTABLE})
+    if(NOT EXISTS ${HIPCC_BIN_DIR}/${HIPCONFIG_EXECUTABLE} AND NOT DEFINED HIP_PLATFORM)
         message(FATAL_ERROR "Please pass hipcc/build or hipcc/bin using -DHIPCC_BIN_DIR.")
     endif()