[libc-commits] [libc] [libc] Make standard streams entrypoints (PR #184669)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Mon Mar 9 23:53:47 PDT 2026
================
@@ -64,6 +68,31 @@
#define LLVM_LIBC_FUNCTION(type, name, arglist) \
LLVM_LIBC_FUNCTION_IMPL(type, name, arglist)
+// At the moment, [[gnu::alias()]] is not supported on MacOS, and it is needed
+// to cleanly export and alias the C++ symbol `LIBC_NAMESPACE::func` with the C
+// symbol `func`. So for public packaging on MacOS, we will only export the C
+// symbol. Moreover, a C symbol `func` in macOS is mangled as `_func`.
+#if defined(LIBC_COPT_PUBLIC_PACKAGING) && !defined(LIBC_COMPILER_IS_MSVC)
----------------
petrhosek wrote:
Is it just variables (in other words are aliases supported for functions)? I suspect it might be broken since I haven't actually tried to build the NVPTX target.
https://github.com/llvm/llvm-project/pull/184669
More information about the libc-commits
mailing list