mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: llvm-9: Fix building on riscv64-linux.
* gnu/packages/llvm.scm (llvm-9)[arguments]: When building for riscv64-linux add a phase to fix building one of the binaries.
This commit is contained in:
parent
e4dde29e01
commit
0ea51a8177
1 changed files with 16 additions and 1 deletions
|
@ -878,7 +878,22 @@ (define-public llvm-9
|
|||
(patches (search-patches
|
||||
"llvm-9-fix-bitcast-miscompilation.patch"
|
||||
"llvm-9-fix-scev-miscompilation.patch"
|
||||
"llvm-9-fix-lpad-miscompilation.patch"))))))
|
||||
"llvm-9-fix-lpad-miscompilation.patch"))))
|
||||
(arguments
|
||||
(if (target-riscv64?)
|
||||
(substitute-keyword-arguments (package-arguments llvm-10)
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(add-after 'unpack 'patch-dsymutil-link
|
||||
(lambda _
|
||||
(substitute* "tools/dsymutil/CMakeLists.txt"
|
||||
(("endif\\(APPLE\\)")
|
||||
(string-append
|
||||
"endif(APPLE)\n\n"
|
||||
"if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES \"riscv64\")\n"
|
||||
" target_link_libraries(dsymutil PRIVATE atomic)\n"
|
||||
"endif()"))))))))
|
||||
(package-arguments llvm-10)))))
|
||||
|
||||
(define-public clang-runtime-9
|
||||
(clang-runtime-from-llvm
|
||||
|
|
Loading…
Reference in a new issue