[driver][mips] Check both `gnuabi64` and `gnu` suffixes in `getMultiarchTriple`
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 2 Apr 2019 18:03:31 +0000 (18:03 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 2 Apr 2019 18:03:31 +0000 (18:03 +0000)
commit751510cd78fb15f677b5cdebfedee6a28ad2ad99
tree0f321aab7ec0e51c803c72f5abcce0121ed81a7b
parent27c0f204d79ecb1b1bc8f202cd86de379c439c0c
[driver][mips] Check both `gnuabi64` and `gnu` suffixes in `getMultiarchTriple`

In case of N64 ABI toolchain paths migth have `mips-linux-gnuabi64`
or `mips-linux-gnu` directory regardless of selected environment.
Check both variants while detecting a multiarch triple.

Fix for the bug https://bugs.llvm.org/show_bug.cgi?id=41204

llvm-svn: 357506
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/Driver/linux-ld.c