Hitchikers Guide to Porting Phobos / D Runtime to other architectures

Jacob Carlborg doob at me.com
Mon Apr 9 02:35:13 PDT 2012


On 2012-04-09 11:05, Johannes Pfau wrote:

> * Adapting the core.stdc bindings to something different than the
>    currently supported C libraries sucks: The version blocks are
>    sometimes completely wrong. For example Android's bionic is a C
>    library based on BSD code, but running on Linux. As a result
>    sometimes the version(FreeBSD) blocks apply for bionic, but sometimes
>    the version(linux) blocks are right. I basically had to rewrite
>    the complete core.stdc bindings. This is an issue because druntime
>    and phobos do not distinguish between OS/Kernel and C library.

Is it possible to treat bionic as its own platform:


version (bionic) {}

else version (linux{}

and so on.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list