The GCCInstallationDetector has a list of gcc triples to search
for when trying to find a valid gcc install on the system. When
all else is equal, clang selects the first triple that appears in
the list.
This causes a problem on Red Hat operating systems, since there
is a cross-compiler gcc package that uses the triple x86_64-linux-gnu
and since this is listed in the triple list before the system gcc
install (x86_64-redhat-linux), the cross-compiler is always selected
by clang.
To solve this, we make it possible for a distro to provide a list of
preferred triples that will be selected before any triples in the
generic triple list.
Another solution to this problem would be to reorder the generic triple
lists so that distro supplied triples come first. However, I don't
have confidence that I would be able to order the list so that it
is correct for every distro.
clang-format not found in user’s local PATH; not linting file.