[Issue 20017] New: JSON (-X) compilerInfo.architectures generation depends on params.isXXX for CPU detection
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 30 21:54:33 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20017
Issue ID: 20017
Summary: JSON (-X) compilerInfo.architectures generation
depends on params.isXXX for CPU detection
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
These parameters will eventually become private to dmd/target.d, there is also
no way for an interfacing compiler backend to add their own architectures (e.g:
ARM, PowerPC, RISC-V, SystemZ, ...)
Also makes an incorrect use of version(X86), as that is only evaluated on the
host, not the target.
if (global.params.is64bit)
item("x86_64");
else
version(X86) item("x86");
--
More information about the Digitalmars-d-bugs
mailing list