[all-commits] [llvm/llvm-project] e03be2: unwind: allow building with GCC

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Sun Jun 13 14:46:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e03be2efe564026ad3b04d459794c89c674e1ed9
      https://github.com/llvm/llvm-project/commit/e03be2efe564026ad3b04d459794c89c674e1ed9
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2021-06-13 (Sun, 13 Jun 2021)

  Changed paths:
    M libunwind/src/libunwind.cpp

  Log Message:
  -----------
  unwind: allow building with GCC

This was regressed in adf1561d6ce8.  Since gcc does not support
`__has_feature`, this adjusts the build to use the
`__SANITIZE_ADDRESS__` macro which GCC defines to identify if ASAN is
enabled (similar to `__has_feature`).  This allows building libunwind
with gcc again.

Patch by Daniel Levin!

Reviewed By: compnerd

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




More information about the All-commits mailing list