On 2014-11-11 11:42, John Colvin wrote:
what's the status?
I tried building druntime with 'make -f posix.mak dll' and got
src/rt/sections.d(52): Error: static assert (is(typeof(__error) ==
void* function())) is false
I'd be happy to put in some work to improve the situation, but a brief
overview of the status quo would be useful.
The first step would be to implement native TLS, see this issue [1]. The
next step that would probably be to look at the changes in druntime made
for Linux to add support for shared libraries. I think a major part of
that is in rt_sections.d or similar.
There were some changes to the compiler as well, adding some hooks when
a dynamic library is loaded. But that shouldn't be needed on OS X since
the dynamic linker have native support for this.
[1] https://issues.dlang.org/show_bug.cgi?id=9476
--
/Jacob Carlborg