[all-commits] [llvm/llvm-project] da59c2: [GWP-ASan] Change sys/cdefs.h to features.h

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Feb 17 20:03:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da59c2e4dc1c7b502cc2098247b2ee38ac297e0c
      https://github.com/llvm/llvm-project/commit/da59c2e4dc1c7b502cc2098247b2ee38ac297e0c
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp

  Log Message:
  -----------
  [GWP-ASan] Change sys/cdefs.h to features.h

sys/cdefs.h is a glibc internal header which is not supposed to be included by applications.
(Some libc implementations provide this file for compatibility.)
Android features.h includes sys/cdefs.h, so we can include features.h instead.

This change makes `ninja gwp_asan` build on musl.




More information about the All-commits mailing list