[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/19: gnu: llvm-for-mesa: Build all targets.
From: |
guix-commits |
Subject: |
07/19: gnu: llvm-for-mesa: Build all targets. |
Date: |
Fri, 27 Sep 2024 11:34:47 -0400 (EDT) |
podiki pushed a commit to branch mesa-updates
in repository guix.
commit bf2abbddb00beb71aba316d9a1754153708d5e60
Author: John Kehayias <john.kehayias@protonmail.com>
AuthorDate: Sun Sep 1 20:54:06 2024 -0400
gnu: llvm-for-mesa: Build all targets.
This change is needed for updating mesa to 24.2.1. Otherwise, mesa fails to
build. For example, linking intel_clc fails with errors of libclang-cpp.so
having undefined references to various LLVM targets.
It is possible that just some LLVM targets could be built or a modified
version of the clang input for mesa (now required) could be used to try to
reduce the closure size as before.
* gnu/packages/llvm.scm (llvm-for-mesa)[arguments]: Don't set the
LLVM_TARGETS_TO_BUILD configure flag. Also, don't remove it from the
inherited configure-flags. Fix indentation.
Change-Id: I4a2b7239e6ea77b0d3bce10bdf945691faa84994
---
gnu/packages/llvm.scm | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index f4e0c7ae5c..793100b989 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -22,7 +22,7 @@
;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
;;; Copyright © 2021, 2022 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2022, 2024 Greg Hogan <code@greghogan.com>
-;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
+;;; Copyright © 2022, 2024 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
@@ -2166,21 +2166,18 @@ using @code{clang-rename}.")))
,@modules))
((#:configure-flags cf ''())
#~(cons*
- ;; AMDGPU is needed by the vulkan drivers.
- #$(string-append "-DLLVM_TARGETS_TO_BUILD="
- (system->llvm-target) ";AMDGPU")
- #$@(if (%current-target-system)
- '("-DBUILD_SHARED_LIBS:BOOL=TRUE"
- "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
+ #$@(if (%current-target-system)
+ '("-DBUILD_SHARED_LIBS:BOOL=TRUE"
+ "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE")
'())
- ;; Skipping tools and utils decreases the output by ~100 MiB.
- "-DLLVM_BUILD_TOOLS=NO"
- (remove
- (cut string-match
- #$(if (%current-target-system)
-
"-DLLVM_(LINK_LLVM_DYLIB|TARGETS_TO_BUILD|INSTALL_UTILS).*"
- "-DLLVM_(TARGETS_TO_BUILD|INSTALL_UTILS).*") <>)
- #$cf)))
+ ;; Skipping tools and utils decreases the output by ~100 MiB.
+ "-DLLVM_BUILD_TOOLS=NO"
+ (remove
+ (cut string-match
+ #$(if (%current-target-system)
+ "-DLLVM_(LINK_LLVM_DYLIB|INSTALL_UTILS).*"
+ "-DLLVM_INSTALL_UTILS.*") <>)
+ #$cf)))
((#:phases phases '%standard-phases)
#~(modify-phases #$phases
#$@(if (%current-target-system)
- 03/19: gnu: Remove wayland-protocols-next., (continued)
- 03/19: gnu: Remove wayland-protocols-next., guix-commits, 2024/09/27
- 09/19: gnu: mesa: Update configure flags., guix-commits, 2024/09/27
- 12/19: gnu: wlroots: Remove unneeded hwdata patch., guix-commits, 2024/09/27
- 16/19: gnu: gtk-layer-shell: Update to 0.9.0., guix-commits, 2024/09/27
- 01/19: gnu: libdrm: Update to 2.4.123., guix-commits, 2024/09/27
- 08/19: gnu: mesa: Update to 24.2.2., guix-commits, 2024/09/27
- 05/19: gnu: volk: Hard-code path of vulkan-loader for dynamic loading, guix-commits, 2024/09/27
- 17/19: gnu: qtwayland: Fix build., guix-commits, 2024/09/27
- 14/19: gnu: mesa: Fix build on arm architectures., guix-commits, 2024/09/27
- 10/19: gnu: libinput: Update to 1.26.2., guix-commits, 2024/09/27
- 07/19: gnu: llvm-for-mesa: Build all targets.,
guix-commits <=
- 15/19: gnu: qtwayland-6: Fix build., guix-commits, 2024/09/27
- 18/19: gnu: mesa: Enable NVK driver for x86_64 architecture., guix-commits, 2024/09/27
- 19/19: gnu: mesa: Update to 24.2.3., guix-commits, 2024/09/27
- 02/19: gnu: wayland-protocols: Update to 1.37., guix-commits, 2024/09/27
- 06/19: gnu: llvm-for-mesa: Update to llvm-18., guix-commits, 2024/09/27
- 11/19: gnu: wayland: Update to 1.23.1., guix-commits, 2024/09/27
- 13/19: gnu: wlroots: Update to 0.18., guix-commits, 2024/09/27
- 04/19: gnu: vulkan-headers: Hard-code libvulkan.so file name., guix-commits, 2024/09/27