summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/llvm.scm4
-rw-r--r--gnu/packages/patches/llvm-13-gcc-14.patch12
2 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 226ab13e537..305ea089f95 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -27,6 +27,7 @@
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2023-2025 Zheng Junjie <z572@z572.online>
+;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -852,7 +853,8 @@ Library.")
(uri (llvm-uri "llvm" version))
(sha256
(base32
- "0d681xiixmx9inwvz14vi3xsznrcryk06a8rvk9cljiq5kc80szc"))))
+ "0d681xiixmx9inwvz14vi3xsznrcryk06a8rvk9cljiq5kc80szc"))
+ (patches (search-patches "llvm-13-gcc-14.patch"))))
(arguments
(substitute-keyword-arguments (package-arguments llvm-14)
((#:phases phases '%standard-phases)
diff --git a/gnu/packages/patches/llvm-13-gcc-14.patch b/gnu/packages/patches/llvm-13-gcc-14.patch
new file mode 100644
index 00000000000..a7697b01d00
--- /dev/null
+++ b/gnu/packages/patches/llvm-13-gcc-14.patch
@@ -0,0 +1,12 @@
+See: https://github.com/smlnj/smlnj/issues/279
+
+--- llvm-13.0.1.src/include/llvm/Support/Signals.h.orig 2024-12-08 14:34:21.338967469 +0100
++++ llvm-13.0.1.src/include/llvm/Support/Signals.h 2024-12-08 14:32:22.486780827 +0100
+@@ -14,6 +14,7 @@
+ #ifndef LLVM_SUPPORT_SIGNALS_H
+ #define LLVM_SUPPORT_SIGNALS_H
+
++#include <cstdint>
+ #include <string>
+
+ namespace llvm {