FYI: LUAI_FUNC etc. on MacOS

89 views
Skip to first unread message

Gé Weijers

unread,
Sep 5, 2025, 8:04:37 PMSep 5
to lu...@googlegroups.com
FYI: I found that "__attribute__((visibility("internal"))) extern" works just fine on MacOS.

I've enabled LUAI_FUNC etc. in my build of Lua 5.5 (work) by changing "defined(__ELF__)" to
 "( defined(__ELF__) || defined(__MACH__) )" which enables it.

This cleans up the symbol table in the same way as on Linux.

--

Roberto Ierusalimschy

unread,
Sep 11, 2025, 2:47:31 PMSep 11
to lu...@googlegroups.com
> FYI: I found that "__attribute__((visibility("internal"))) extern" works
> just fine on MacOS.

I could not find documentation about that: Are there systems where
this gcc attribute do not work? (Maybe gcc just ignores it if the
underlying system has no support.)

-- Roberto
Reply all
Reply to author
Forward
0 new messages