[libc-commits] [PATCH] D82404: [libc] Minimal Darwin support

Thorsten via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jun 26 23:42:05 PDT 2020


tschuett added a comment.

I don't know whether linking without systemb is supported at all, but LLVM libc is designed to be layered on top of the system libc. It seems to be a problem of the include order.

This is the stddef.h from clang. The path includes clang's version and something like lib/clang/version ...
/Applications/Xcode.app/Contents//Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.3/include/stddef.h
This is the stddef.h from the libc. It is similar to your example: SDKs/MacOSX10.15.sdk/usr/include/stddef.h
/Applications/Xcode.app/Contents//Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stddef.h
Mine is from the Xcode installation. Yours is from the command line tools.


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

https://reviews.llvm.org/D82404





More information about the libc-commits mailing list