[Issue 20016] JSON (-X) compilerInfo.platforms generation depends on params.isXXX for platform detection

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 4 21:39:42 UTC 2020


Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #0)
> These parameters will eventually become private to dmd/target.d, there is
> also no way for an interfacing compiler backend to their own platforms.

To highlight why this is important:

1. It wrongly assumes that Windows can never be POSIX (i.e: Cygwin).
2. It wrongly assumes that non-Windows is always POSIX (i.e: RTEMS, Bare-metal)
3. Lacking many other platforms, which would be wrong to hard-code here.


More information about the Digitalmars-d-bugs mailing list