Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 23:02:11 +0000
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: bed825b68521 - stable/15 - Fix up builds on Linux hosts after llvm 21.1.8 merge
Message-ID:  <6a1a1af3.4157e.4a86a44c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=bed825b685212cf25e316f0a66d737b783453026

commit bed825b685212cf25e316f0a66d737b783453026
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-04-25 15:20:27 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-29 22:57:33 +0000

    Fix up builds on Linux hosts after llvm 21.1.8 merge
    
    This is because contrib/llvm-project/llvm/lib/Support/Unix/Threading.inc
    attempts to use pthread_get_name_np(3) and pthread_set_name_np(3), which
    are not defined on Linux.
    
    Reported by:    ivy
    PR:             292067
    MFC after:      1 month
    
    (cherry picked from commit b6d823e39072daae9df4b47a15ea7142b7a55f1a)
---
 lib/clang/include/llvm/Config/config.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index e504ac8f13bb..0aea32fa9dce 100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@ -114,10 +114,14 @@
 #define HAVE_PTHREAD_SETNAME_NP 1
 
 /* Define to 1 if you have the `pthread_get_name_np' function. */
+#if !defined(__linux__)
 #define HAVE_PTHREAD_GET_NAME_NP 1
+#endif
 
 /* Define to 1 if you have the `pthread_set_name_np' function. */
+#if !defined(__linux__)
 #define HAVE_PTHREAD_SET_NAME_NP 1
+#endif
 
 /* Define to 1 if you have the <mach/mach.h> header file. */
 #if __has_include(<mach/mach.h>)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1a1af3.4157e.4a86a44c>