[libc-commits] [libc] [libc] Set default visibility for LLVM functions (PR #116686)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Mon Nov 18 11:38:42 PST 2024


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/116686

This is a follow up to 5ff3ff3 addressing the issue reported in #74881.

>From 23638cf644838c65a96e1fd351a280cacd314c8e Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Mon, 18 Nov 2024 11:26:24 -0800
Subject: [PATCH] [libc] Set default visibility for LLVM functions

This is a follow up to 5ff3ff3 addressing the issue reported in #74881.
---
 libc/src/__support/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index 48c773fa02c176..20d6f4c4a2af82 100644
--- a/libc/src/__support/common.h
+++ b/libc/src/__support/common.h
@@ -18,7 +18,7 @@
 #include "src/__support/macros/properties/architectures.h"
 
 #ifndef LLVM_LIBC_FUNCTION_ATTR
-#define LLVM_LIBC_FUNCTION_ATTR
+#define LLVM_LIBC_FUNCTION_ATTR [[gnu::visibility("default")]]
 #endif
 
 // MacOS needs to be excluded because it does not support aliasing.



More information about the libc-commits mailing list