[all-commits] [llvm/llvm-project] 2a358b: [libc] Move __LLVM_LIBC__ define to __llvm-libc-co...

Petr Hosek via All-commits all-commits at lists.llvm.org
Fri Feb 14 13:44:00 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a358bac7874baed5d05221e8ae6c75266c407b7
      https://github.com/llvm/llvm-project/commit/2a358bac7874baed5d05221e8ae6c75266c407b7
  Author: Petr Hosek <phosek at google.com>
  Date:   2025-02-14 (Fri, 14 Feb 2025)

  Changed paths:
    M libc/include/__llvm-libc-common.h
    M libc/include/llvm-libc-macros/features-macros.h

  Log Message:
  -----------
  [libc] Move __LLVM_LIBC__ define to __llvm-libc-common.h (#126877)

Relying on features.h is problematic since codebases are free to have
such a header on their search path, which breaks compilation. libc
should instead provide a more standard way of getting __LLVM_LIBC__.
Since __llvm-libc-common.h is included from all libc headers, defining
__LLVM_LIBC__ there ensures that this define is available whenever any
of the standard header is included.

(cherry picked from commit b0d782080529cf5d422847e1f91f29bd7c62f691)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list