Read the target off the compiler rather than off its flags: for most of CE's
cross compilers the target is which binary runs and appears in no argument at
all. The instruction set CE reports gives it, refined by the `Target:` line in
clang's version banner where the two agree — a clang aimed elsewhere by baked-in
flags still prints its host there, and the instruction set is the one to believe.
Only where a single compiler is attached. With several there is no saying which
target was meant, and unlike a standard, every target is a different machine.
Instruction sets covering several ABIs at once (mips, powerpc, sparc) name none
either. Of the 1197 C++ compilers on godbolt.org, 793 get a named target.
The standard now also comes from the `stdver` override, which 1095 of those
compilers offer and which never appears in the flags box. Reading only the box
meant an explicitly chosen standard was silently dropped.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CUKb6LjSf9n471RNQyBKtY