[all-commits] [llvm/llvm-project] bc28be: [Driver][OHOS] Fix lld link issue for OHOS (#118192)

Peng Huang via All-commits all-commits at lists.llvm.org
Thu Dec 12 06:53:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc28be0a428020ea803c94adb4df48ee4972e9f1
      https://github.com/llvm/llvm-project/commit/bc28be0a428020ea803c94adb4df48ee4972e9f1
  Author: Peng Huang <shawn.p.huang at gmail.com>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/OHOS.cpp

  Log Message:
  -----------
  [Driver][OHOS] Fix lld link issue for OHOS (#118192)

For ohos targets, libclang_rt.builtins.a, clang_rt.crtbegin.o and
clang_rt.crtend.o are installed in
clang/20/lib/${arch}-unknown-linux-ohos. However OHOS toolchain search
them in clang/20/lib/${arch}-linux-ohos folder. It causes link error.
Fix the problem by seaching both folders.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list