Pattern for choosing compiler options based on toolchain?

You can detect the compiler reasonably reliably with generator expressions, but not the processor/platform. There’s no authoritative list of processor names, so you could get anything, or nothing at all.