https://issues.dlang.org/show_bug.cgi?id=20017
Iain Buclaw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Iain Buclaw <[email protected]> --- (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 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"); To reiterate why this is bad. 1. Missing many architectures, hard coding them here would be wrong. 2. Cross compiling to x86 won't add any architectures (dmd -Xi -m32) --
