Thanks Artem, that works for Apple. Is there anything else for other platforms?
a
a-dd
09/12/2023, 5:59 PM
I believe no š Is there a reason why you canāt make them internal?
n
natario1
09/12/2023, 6:07 PM
Itās pretty simple, I have a project with many modules which are combined into a single binary. So I need
public
to make stuff accessible to sibling modules, but I need a bit more control over symbols that are actually exposed by the binary to the end user.
natario1
09/12/2023, 6:11 PM
If you think itās a valid use case, I could file a ticket.
Also if you can think of any workaround, please let me know! Iām open to write a compiler plugin if it helps.
a
a-dd
09/12/2023, 6:48 PM
The obvious workaround is to proxy all the library API in the āumbrellaā module and export only it. It seems robust but can be cumbersome. But the case is pretty valid nevertheless IMHO.