[all-commits] [llvm/llvm-project] 75113f: [Driver] Always use --as-needed with libunwind

Petr Hosek via All-commits all-commits at lists.llvm.org
Wed Jun 29 20:33:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75113f3539df03625b43754f17f9a570cc1c2e3b
      https://github.com/llvm/llvm-project/commit/75113f3539df03625b43754f17f9a570cc1c2e3b
  Author: Petr Hosek <phosek at google.com>
  Date:   2022-06-30 (Thu, 30 Jun 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/compiler-rt-unwind.c

  Log Message:
  -----------
  [Driver] Always use --as-needed with libunwind

With libgcc, we follow the behavior of GCC for backwards compatibility,
only using --as-needed in the non-C++ mode.

With libunwind, there are no backward compatibility requirements so we
can always use --as-needed on all supported platforms.

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




More information about the All-commits mailing list