[all-commits] [llvm/llvm-project] 5f91c7: [Driver] Fix rpath for compiler-rt

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Apr 5 17:15:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f91c747763c20a63f3d6156fced03b474f842a1
      https://github.com/llvm/llvm-project/commit/5f91c747763c20a63f3d6156fced03b474f842a1
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Driver/ToolChains/OHOS.cpp
    M clang/lib/Driver/ToolChains/OHOS.h
    M clang/lib/Driver/ToolChains/VEToolchain.cpp
    M clang/test/Driver/arch-specific-libdir-rpath.c

  Log Message:
  -----------
  [Driver] Fix rpath for compiler-rt

The compiler-rt library path can be either {resource_dir}/lib/{triple}
or {resource_dir}/lib/{OS}/{arch} depending on whether
LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default is ON or OFF.
Currently, the rpath added by -rtlib-add-rpath only adds
the latter. This patch checks both and adds the one that exists.

Reviewed by: Fangrui Song

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




More information about the All-commits mailing list