On Debian, if we have both r6 and legacy cross env are installed,
clang will always try to use the legacy one. For example, if we have
both gcc-mipsel-linux-gnu and gcc-mipsisa32r6el-linux-gnu is installed,
clang -target mipsisa32r6el-linux-gnu will use mipsel-linux-gnu's header
and libraries.
It is due to in MIPS*Triples variables, the leagcies are always list before r6 ones.
Let's split them to _r6 and _legacy lists.
At the same time, we also set the internal triple to r6 ones, if -march=mips32r6/mips64r6
is passed.