Robert Fraser wrote:
I'm considering doing so since Optlink won't work with the debug build of one of my libraries (it's 22MB),

Is this reported in bugzilla?

and it doesn't seem to discard any unreferenced library symbols, so the release build of my code is ~9.5MB, while it should be ~4.

Optlink does not discard unreference symbols, it just doesn't pull them in from the library. If it did always pull in everything from the library, then the minimum D executable size will be the size of Phobos.

Since that isn't happening, something else is happening with your code. I bet that those unreferenced symbols *are* being referenced. You can determine this by using the librarian to remove those 'unreferenced' symbols from Phobos, and then link, and see if there are any unresolved symbol error messages.

Reply via email to