digitalmars.D.bugs - [Issue 20017] New: JSON (-X) compilerInfo.architectures generation
- d-bugmail puremagic.com (24/24) Jun 30 2019 https://issues.dlang.org/show_bug.cgi?id=20017
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 puremagic.com Reporter: ibuclaw 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"); --
Jun 30 2019