[all-commits] [llvm/llvm-project] 74af56: [Clang] Avoid using unwind library in the MSVC env...

Petr Hosek via All-commits all-commits at lists.llvm.org
Wed Aug 24 10:35:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74af56c1c342038d385134add13cd2a7db7f0a70
      https://github.com/llvm/llvm-project/commit/74af56c1c342038d385134add13cd2a7db7f0a70
  Author: Petr Hosek <phosek at google.com>
  Date:   2022-08-24 (Wed, 24 Aug 2022)

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

  Log Message:
  -----------
  [Clang] Avoid using unwind library in the MSVC environment

We're seeing the following warnings with --rtlib=compiler-rt:

  lld-link: warning: ignoring unknown argument '--as-needed'
  lld-link: warning: ignoring unknown argument '-lunwind'
  lld-link: warning: ignoring unknown argument '--no-as-needed'

MSVC doesn't use the unwind library, so just omit it.

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




More information about the All-commits mailing list