[Driver] Support priority for multilibs
authorPetr Hosek <phosek@chromium.org>
Sat, 27 Apr 2019 00:25:11 +0000 (00:25 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 27 Apr 2019 00:25:11 +0000 (00:25 +0000)
commit0f9f021d05ac0697b1baf4f79916e8c97208d58d
tree1ca265e52eeda53228c16cb3e38c7d005410cbf2
parent4f331cb1f31ed122ffdc66208b7911c5e8bfb587
[Driver] Support priority for multilibs

When more than one multilib flag matches, try to select the best
possible match based on priority. When two different multilibs with
the same same priority match, we still throw an error matching the
existing behavior.

Differential Revision: https://reviews.llvm.org/D60990

llvm-svn: 359359
clang/include/clang/Driver/Multilib.h
clang/lib/Driver/Multilib.cpp
clang/unittests/Driver/MultilibTest.cpp