This changed -dumpmachine does no normalization and follows GCC more closely
(gcc -dumpmachine on Debian may be x86_64-linux-gnu).
Vendors have different ideas on the canonical triple.
llvm/cmake/config.guess prefers x86_64-unknown-linux-gnu.
RedHat prefers x86_64-redhat-linux.
Suse prefers x86_64-suse-linux.
Debian/Ubuntu prefer x86_64-linux-gnu.
Traditionally they contribute their normalization rules to Triple.cpp or Clang
Driver. This is an unfortunate state: (a) less popular systems tend to patch Clang downstream
(b) Clang Driver has unneeded complexity.
To fix the unfortunate state, we should just respect
--target/LLVM_DEFAULT_TARGET_TRIPLE and do no normalization at all.
-dumpmachine can be handy when the user wants the configure-time LLVM_DEFAULT_TARGET_TRIPLE.
--print-target-triple still prints the normalized triple.
I think we probably should remove its usage in CMake compiler-rt in favor of -dumpmachine.