[Driver] Use Component in OpenBSD::getCompilerRT to find libraries
authorGreg Steuck <gnezdo@openbsd.org>
Sun, 26 Jun 2022 19:04:43 +0000 (21:04 +0200)
committerFrederic Cambus <fred@statdns.com>
Sun, 26 Jun 2022 19:05:39 +0000 (21:05 +0200)
commit3caa32b26f5a1d4f2e3c9c3f1540a30fe06abe38
tree64f2440ef1d23c43a95cce7867b75d7000acc33f
parent5e944e9eb72aa7ea7fe2542d18813a646b3933d1
[Driver] Use Component in OpenBSD::getCompilerRT to find libraries

Clang uses runtime libraries for some advanced features like
sanitizers. Different systems have different preferences about file
placement. OpenBSD with this change will use this name for ASan:
/usr/lib/clang/15.0.0/lib/libclang_rt.asan.a

Already committed to OpenBSD repository then amended to cover the
case of development tree.

Differential Revision: https://reviews.llvm.org/D109051
clang/lib/Driver/ToolChains/OpenBSD.cpp