[llvm] b6597f5 - [gn] port 1e65b765879fb39

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 17:01:31 PDT 2024


Author: Nico Weber
Date: 2024-09-02T20:00:27-04:00
New Revision: b6597f521d8a040f2b9fee54b3f89c380de8e432

URL: https://github.com/llvm/llvm-project/commit/b6597f521d8a040f2b9fee54b3f89c380de8e432
DIFF: https://github.com/llvm/llvm-project/commit/b6597f521d8a040f2b9fee54b3f89c380de8e432.diff

LOG: [gn] port 1e65b765879fb39

Apparently DragonFly BSD and Solaris/illumos call these APIs
`pthread_get_name_np` / `pthread_set_name_np` (with an extra
underscore) instead of `pthread_getname_np` / `pthread_setname_np`.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
index 1c9c19241508a7..02532f63dd67b0 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
@@ -97,6 +97,8 @@ write_cmake_config("config") {
     "HAVE_LIBPFM=",
     "HAVE_LIBPSAPI=",
     "HAVE_MALLCTL=",
+    "HAVE_PTHREAD_GET_NAME_NP=",
+    "HAVE_PTHREAD_SET_NAME_NP=",
     "HAVE_SIGNAL_H=1",
     "HAVE_SYS_STAT_H=1",
     "HAVE_SYS_TYPES_H=1",


        


More information about the llvm-commits mailing list