[HIP] Fix unbundling archive
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Tue, 11 Oct 2022 22:53:59 +0000 (18:53 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Wed, 12 Oct 2022 20:36:03 +0000 (16:36 -0400)
commit12c6a41f5249fa97041754d38cac28877ed49611
treed72822451708931a4c09521ac63a1c80eb7eac7b
parent35a4fe4c0bf5f02c2eade1d97cfbda263a9285e1
[HIP] Fix unbundling archive

When -lxxx is specified, if there happens to have a directory or
file with name xxx, clang will not look up libxxx.a, but will
try to unbundle xxx instead.

Reviewed by: Saiyedul Islam, Artem Belevich

Differential Revision: https://reviews.llvm.org/D135724
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/hip-link-bundle-archive.hip