aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-06-30 09:16:50 +0300
committerEfraim Flashner <efraim@flashner.co.il>2024-06-30 09:16:50 +0300
commit48934f0c2f8be63d1070a6e82f62f7d278f4fbdc (patch)
tree00931cbcf5d9403c2e5ffac69f58ed2ba94c518d
parentfc15524d371394e538d3e9635ba05aa85c9c7d2c (diff)
downloadguix-48934f0c2f8be63d1070a6e82f62f7d278f4fbdc.tar.gz
guix-48934f0c2f8be63d1070a6e82f62f7d278f4fbdc.zip
gnu: llvm-17: Fix building on i686-linux.
* gnu/packages/llvm.scm (llvm-17)[arguments]: When building for i686-linux delete the 'make-dynamic-linker-cache phase. Change-Id: I0745d9b1bda47ad4ad10680234c9257215de1c4b
-rw-r--r--gnu/packages/llvm.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 7aab2ae8c3..55ad9b96f7 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1434,7 +1434,15 @@ Library.")
(package
(inherit llvm-15)
(version "17.0.6")
- (source (llvm-monorepo version))))
+ (source (llvm-monorepo version))
+ (arguments
+ (substitute-keyword-arguments (package-arguments llvm-15)
+ ;; The build daemon goes OOM on i686-linux on this phase.
+ ((#:phases phases #~'%standard-phases)
+ (if (target-x86-32?)
+ #~(modify-phases #$phases
+ (delete 'make-dynamic-linker-cache))
+ phases))))))
(define-public clang-runtime-17
(clang-runtime-from-llvm llvm-17))