mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
llvm21: bump version
This commit is contained in:
@@ -31,7 +31,7 @@ COPYRIGHT="2003-2025 University of Illinois at Urbana-Champaign"
|
||||
LICENSE="Apache v2 with LLVM Exception"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/llvm/llvm-project/releases/download/llvmorg-$portVersion/llvm-project-$portVersion.src.tar.xz"
|
||||
CHECKSUM_SHA256="e5b65fd79c95c343bb584127114cb2d252306c1ada1e057899b6aacdd445899e"
|
||||
CHECKSUM_SHA256="4633a23617fa31a3ea51242586ea7fb1da7140e426bd62fc164261fe036aa142"
|
||||
SOURCE_DIR="llvm-project-$portVersion.src"
|
||||
PATCHES="llvm21-$portVersion.patchset"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From c4f4e2837ea91ae61900e2fc23e8d734abf8c2e2 Mon Sep 17 00:00:00 2001
|
||||
From b819082f6bc58dcc53066e2f3fb6df1f7860ba3b Mon Sep 17 00:00:00 2001
|
||||
From: Calvin Hill <calvin@hakobaito.co.uk>
|
||||
Date: Sun, 9 Sep 2018 16:11:42 +0100
|
||||
Subject: llvm: import header dir suffix patch from 3dEyes
|
||||
@@ -24,7 +24,7 @@ index 49df8fd..99acd9d 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From c735fc06c0e8b010a8b4e01a080a0c3263b7b10e Mon Sep 17 00:00:00 2001
|
||||
From 5617f1101385e0753494a27ffa3e6e50cd792c2d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
|
||||
Date: Mon, 18 Jul 2016 14:13:19 +0200
|
||||
Subject: clang: support for secondary arch.
|
||||
@@ -119,7 +119,7 @@ index dd6ada8..e5eb778 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From 72cb424286c7ee837a216cc158b27819ff1a22d4 Mon Sep 17 00:00:00 2001
|
||||
From c8cfd58e6171f79dacb4d207dc3a2f9cc19e2651 Mon Sep 17 00:00:00 2001
|
||||
From: David Karoly <karolyd577@gmail.com>
|
||||
Date: Thu, 21 Sep 2023 17:44:12 +0000
|
||||
Subject: fix build on x86 secondary arch
|
||||
@@ -142,7 +142,7 @@ index c96d209..20f5d76 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From dfb50e5c73fce0cb541a8030bd9d9d27a105570a Mon Sep 17 00:00:00 2001
|
||||
From fb47e985d55caaab6978be336ce45d13b2e45fe6 Mon Sep 17 00:00:00 2001
|
||||
From: David Karoly <david.karoly@outlook.com>
|
||||
Date: Mon, 6 Nov 2023 14:24:21 +0100
|
||||
Subject: clang: Haiku: patch for analyzer scripts
|
||||
@@ -204,7 +204,7 @@ index d01aebb..43ba8c3 100755
|
||||
2.51.0
|
||||
|
||||
|
||||
From 00355ac185e59e45eff87fd0cf9843785632d297 Mon Sep 17 00:00:00 2001
|
||||
From 0a03341e6e7c4984dab053ad7b8997b64bb02e05 Mon Sep 17 00:00:00 2001
|
||||
From: Brad Smith <brad@comstyle.com>
|
||||
Date: Mon, 10 Jun 2024 11:13:29 +0200
|
||||
Subject: A slightly better llvm-config diff that doesn't use #ifdef.
|
||||
@@ -250,7 +250,7 @@ index 99acd9d..8da9ddf 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From a8f19b70f40a38a6eff1b8695607819340dd3fd3 Mon Sep 17 00:00:00 2001
|
||||
From 6123b99c19dd7e8ec233ce9b025cf9b71ff8f98f Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 19 May 2024 10:31:55 +0200
|
||||
Subject: Allow linking gcc compiled code with lld
|
||||
@@ -276,7 +276,7 @@ index 21d228e..6203428 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From b24b6a997c973a9811ceb6769f7d7079a29ba0fd Mon Sep 17 00:00:00 2001
|
||||
From 0cd085c4445333c706452f2cc892e38a4aa2d39b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
|
||||
Date: Mon, 24 Mar 2025 21:41:12 +0100
|
||||
Subject: install headers in clang/../include/ where clang searches them
|
||||
@@ -299,7 +299,7 @@ index d92bc0e..4268fbb 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From d6e70c50f92ff698dc3198ea0e0563907bb7eeb7 Mon Sep 17 00:00:00 2001
|
||||
From 2c543b1af7664c48bb221d66c836afa8a764b851 Mon Sep 17 00:00:00 2001
|
||||
From: Luc Schrijvers <begasus@gmail.com>
|
||||
Date: Thu, 17 Apr 2025 16:38:48 +0200
|
||||
Subject: Fix missing PATH for stddef
|
||||
@@ -328,60 +328,25 @@ index e5eb778..76fed45 100644
|
||||
2.51.0
|
||||
|
||||
|
||||
From df1a20bf1a4e3981836b48dc6ddb65c78098b9f7 Mon Sep 17 00:00:00 2001
|
||||
From 901c4e066271a041d6c9f39303c9e4e1e9ba22df Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
|
||||
Date: Sat, 24 May 2025 22:24:52 +0200
|
||||
Subject: fix x86 build
|
||||
|
||||
r13 doesn't provide the trap err.
|
||||
|
||||
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
|
||||
index 16caf69..f278d70 100644
|
||||
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
|
||||
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
|
||||
@@ -1287,7 +1287,7 @@ uptr GetPageSize() {
|
||||
|
||||
uptr ReadBinaryName(/*out*/ char *buf, uptr buf_len) {
|
||||
# if SANITIZER_HAIKU
|
||||
- int cookie = 0;
|
||||
+ int32 cookie = 0;
|
||||
image_info info;
|
||||
const char *argv0 = "<UNKNOWN>";
|
||||
while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK) {
|
||||
@@ -1987,7 +1987,7 @@ SignalContext::WriteFlag SignalContext::GetWriteFlag() const {
|
||||
# elif SANITIZER_NETBSD
|
||||
uptr err = ucontext->uc_mcontext.__gregs[_REG_ERR];
|
||||
# elif SANITIZER_HAIKU
|
||||
- uptr err = ucontext->uc_mcontext.r13;
|
||||
+ uptr err = 0; //ucontext->uc_mcontext.r13;
|
||||
# elif SANITIZER_SOLARIS && defined(__i386__)
|
||||
const int Err = 13;
|
||||
uptr err = ucontext->uc_mcontext.gregs[Err];
|
||||
@@ -2617,6 +2617,11 @@ static void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
|
||||
*pc = ucontext->uc_mcontext.mc_eip;
|
||||
*bp = ucontext->uc_mcontext.mc_ebp;
|
||||
*sp = ucontext->uc_mcontext.mc_esp;
|
||||
+# elif SANITIZER_HAIKU
|
||||
+ ucontext_t *ucontext = (ucontext_t*)context;
|
||||
+ *pc = ucontext->uc_mcontext.eip;
|
||||
+ *bp = ucontext->uc_mcontext.ebp;
|
||||
+ *sp = ucontext->uc_mcontext.esp;
|
||||
# else
|
||||
ucontext_t *ucontext = (ucontext_t *)context;
|
||||
# if SANITIZER_SOLARIS
|
||||
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||
index 2496652..ee73b59 100644
|
||||
index 41d60c8..1c65dd9 100644
|
||||
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||
@@ -629,7 +629,11 @@ typedef unsigned long __sanitizer_sigset_t;
|
||||
# elif SANITIZER_APPLE
|
||||
typedef unsigned __sanitizer_sigset_t;
|
||||
# elif SANITIZER_HAIKU
|
||||
+# if defined(__x86_64__)
|
||||
typedef unsigned long __sanitizer_sigset_t;
|
||||
+# else
|
||||
+typedef unsigned long long __sanitizer_sigset_t;
|
||||
+# endif
|
||||
+# if defined(__x86_64__)
|
||||
+typedef unsigned long __sanitizer_sigset_t;
|
||||
+# else
|
||||
typedef unsigned long long __sanitizer_sigset_t;
|
||||
+# endif
|
||||
# elif SANITIZER_LINUX
|
||||
struct __sanitizer_sigset_t {
|
||||
// The size is determined by looking at sizeof of real sigset_t on linux.
|
||||
Reference in New Issue
Block a user