[all-commits] [llvm/llvm-project] 51ff54: [LinkerWrapper] Fix passing `-rpath` directly to c...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Feb 1 10:03:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51ff5481146475afc869cf54ebc0b46d9da15a14
      https://github.com/llvm/llvm-project/commit/51ff5481146475afc869cf54ebc0b46d9da15a14
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

  Log Message:
  -----------
  [LinkerWrapper] Fix passing `-rpath` directly to clang

Summary:
This code passed the value of `-rpath` directly to the clang invocation.
If we're using the linker then it'll be fine. However, if the linker is
`gcc` as is the case when doing `-fopenmp-targets=x86_64` then this will
cause problems.  This patch adds the `-Wl,-rpath,` to feed it to the
linker correctly.




More information about the All-commits mailing list