[all-commits] [llvm/llvm-project] 377806: [HIP] Fix static lib name on windows

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue May 31 19:14:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 377806a65ea97837c99d9791db9d462b63b9135a
      https://github.com/llvm/llvm-project/commit/377806a65ea97837c99d9791db9d462b63b9135a
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-05-31 (Tue, 31 May 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/hip-link-bundle-archive.hip

  Log Message:
  -----------
  [HIP] Fix static lib name on windows

clang by default assumes static library name to be xxx.lib
when -lxxx is specified on Windows with MSVC environment,
instead of libxxx.a.

This patch fixes static device library unbundling for that.
It falls back to libxxx.a if xxx.lib is not found.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list