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

via libc-commits libc-commits at lists.llvm.org
Mon Nov 18 11:39:20 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/116686.diff


1 Files Affected:

- (modified) libc/src/__support/common.h (+1-1) 


``````````diff
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.

``````````

</details>


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


More information about the libc-commits mailing list