1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: llvm-rocm: Include native target in build.

* gnu/packages/llvm.scm (make-llvm-rocm)[arguments]: Use system->llvm-target
instead of hardcoded "X86" for LLVM_TARGETS_TO_BUILD, so that the native
backend is always available.  This fixes test failures on non-x86 hosts where
llc cannot resolve the default triple.

Change-Id: I2e94583452730c15fe5e24a39420289cdff70202
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #7472
This commit is contained in:
Roman Scherer
2026-03-25 19:26:42 +01:00
committed by Ludovic Courtès
parent c8d3b54459
commit cfd36ce667

View File

@@ -1412,7 +1412,11 @@ Library.")
(substitute-keyword-arguments arguments (substitute-keyword-arguments arguments
((#:configure-flags flags) ((#:configure-flags flags)
#~(append #$flags #~(append #$flags
(list "-DLLVM_TARGETS_TO_BUILD=AMDGPU;X86" (list #$(string-append
"-DLLVM_TARGETS_TO_BUILD=AMDGPU;X86"
(if (string=? "X86" (system->llvm-target))
""
(string-append ";" (system->llvm-target))))
"-DLLVM_VERSION_SUFFIX="))))) "-DLLVM_VERSION_SUFFIX=")))))
(properties `((hidden? . #t) (properties `((hidden? . #t)
,@(package-properties llvm-base))) ,@(package-properties llvm-base)))