As this thread looks somewhat revived, I'd like to chime in with an idea I mentioned in the Future Directions section of cross-compilation SE-0387 proposal. IMO adding these ad-hoc checks doesn't seem to be scalable. There were previous pitches for checking if a platform is 64-bit, it also makes sense to check if a platform is little-endian or big-endian, what libc and what version of libc is it using, what kernel version etc. Even for 64-bit checks, do you mean 64-bit registers or 64-bit addressing?
A Swift SDK declaring a dictionary of attributes that describe all of these things seems much more scalable than adding separate capabilities to #if compile-time checks each time, potentially requiring an evolution proposal and a lengthy review when a need for a new one appears.