This is the one point where I am unsure. I don't like the dmd approach. It is incomplete: e.h. NetBSD, AIX and Haiku are missing. It is not possible to distinguish between runtime variants (Windows with MS runtime or MingW32; Darwin or iOS).

IMHO the use of `global.params.targetTriple` seems more flexible - even at the price of deviation from dmd source.