File: 0016-roc-obj-use-llvm-21.patch

package info (click to toggle)
rocm-hipamd 6.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: 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-- 932 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@slerp.xyz>
Date: Fri, 20 Jun 2025 23:14:10 -0600
Subject: roc-obj use llvm-21

Use the same LLVM version as the rest of the ROCm stack, so we don't
need to install multiple versions of LLVM just for roc-obj.

Forwarded: not-needed
---
 hipamd/bin/roc-obj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/hipamd/bin/roc-obj
+++ b/hipamd/bin/roc-obj
@@ -259,7 +259,7 @@
 # We expect to be installed as ROCM_PATH/hip/bin/roc-obj, which means BASE_DIR
 # is ROCM_PATH/hip/bin.
 BASE_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
-(( OPT_DISASSEMBLE )) && OBJDUMP="$(find_rocm_executable_or_fail llvm-objdump)"
+(( OPT_DISASSEMBLE )) && OBJDUMP="$(find_rocm_executable_or_fail llvm-objdump-21)"
 ROC_OBJ_LS="$(find_rocm_executable_or_fail roc-obj-ls)"
 ROC_OBJ_EXTRACT="$(find_rocm_executable_or_fail roc-obj-extract)"
 readonly -- BASE_DIR OBJDUMP ROC_OBJ_LS ROC_OBJ_EXTRACT