On 2016-05-17 11:32, Joakim wrote:
Jacob, when you said "runtime option," you meant when running the
compiler, right?
Exactly.
That's how I took it: the C library is chosen either
when building the compiler or running the compiler. On Windows, it's
when running the compiler.
We introduced CRuntime_Glibc specifically to separate libc from kernel
differences, e.g. to support android.
Have a look at how -mscoff32 and Android are implememted in dmd.
Android is not in dmd yet, as I mentioned, you can look at my small PR
though:
https://github.com/dlang/dmd/pull/3643
Looks like a "runtime" option. It's not hard to implement, just a
question of which approach we would like to use.
--
/Jacob Carlborg