[all-commits] [llvm/llvm-project] b9ee2a: [LinkerWrapper] report on missing libraries

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Nov 2 13:28:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9ee2acc9c5c129bce5503dd8d2ab4757e42c990
      https://github.com/llvm/llvm-project/commit/b9ee2acc9c5c129bce5503dd8d2ab4757e42c990
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-11-02 (Wed, 02 Nov 2022)

  Changed paths:
    M clang/test/Driver/linker-wrapper-image.c
    M clang/test/Driver/linker-wrapper.c
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

  Log Message:
  -----------
  [LinkerWrapper] report on missing libraries

The linker wrapper does its own library searching for static archives
that can contain device code. The device linking phases happen before
the host linking phases so that we can generate the necessary
registration code and link it in with the rest of the code. Previously,
If a library containing needed device code was not found the execution
would continue silently until it failed with undefined symbols. This
patch allows the linker wrapper to perform its own check beforehand to
catch these errors.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list