[all-commits] [llvm/llvm-project] e81d81: [clang] Don't set CLANG_DEFAULT_UNWINDLIB to none ...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Mon Mar 8 12:30:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e81d813717b2ef227c5b995057153d2cca027afb
      https://github.com/llvm/llvm-project/commit/e81d813717b2ef227c5b995057153d2cca027afb
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-03-08 (Mon, 08 Mar 2021)

  Changed paths:
    M clang/CMakeLists.txt

  Log Message:
  -----------
  [clang] Don't set CLANG_DEFAULT_UNWINDLIB to none if rtlib is set to compiler-rt

002dd47bdd674fad8186650f07458b1e062545df was meant to not be any
functional change, but it turned out it was.

With CLANG_DEFAULT_RTLIB set to compiler-rt, CLANG_DEFAULT_UNWINDLIB used
to bet set to an empty string, but now was set to "none".

If one only overrode rtlib to libgcc, one previously would get libgcc
as unwind lib, but now didn't. This caused test failures, fixed in
41476d89b82647c1ff690fdc805c859262d571e5.

Secondly, for the android target, the previous default was to link
libunwind, which this now changed.

Reinstate the exact same behaviour as before (removing the previously
typoed cmake check) and fix the option comment in one place to match
the other one above.

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




More information about the All-commits mailing list