[PATCH] D137043: [clang] add implicit include for Linux/gnu compatibility

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 6 09:23:07 PST 2022


MaskRay added a comment.

In GCC, a `*-linux*` triple (this applies to musl as well) gets `c_target_objs="${c_target_objs} glibc-c.o"` from `gcc/config.gcc`.
`"stdc-predef.h"` is defined in `glibc-c.cc`. There is no `musl-c.cc`.
Even if musl does provide `stdc-predef.h` and GCC configured on `*-linux-musl` does include `stdc-predef.h`, this may be an unexpected use.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137043/new/

https://reviews.llvm.org/D137043



More information about the cfe-commits mailing list