On Tuesday, 17 May 2016 at 11:30:33 UTC, Jacob Carlborg wrote:
On 2016-05-17 11:27, Joakim wrote:
[...]
It depends. One approach would be to add an option to the
druntime makefile, which would add -version CRuntime_Musl when
compiling. In that case version(CRuntime_Musl) needs to come
before version(CRuntime_Glibc) when declaring the imports. It
doesn't sound like a good idea, to depend on the order of the
version statements, but it's still a possibility.
I wouldn't take the existence of CRuntime_Glibc as etched in
stone, but whatever happens, they will not both be defined at the
same time, so I don't think you should worry about the order.
You can modify dmd to replace Glibc with Musl for now, and worry
about how it'll be defined officially later.