[libc-commits] [PATCH] D80178: [libc] Fix accidental inclusion of system libc headers.
Paula Toth via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon May 18 22:45:11 PDT 2020
PaulkaToast added a comment.
In D80178#2043168 <https://reviews.llvm.org/D80178#2043168>, @sivachandra wrote:
> Doesn't this trigger a "defining builtin macro" warning/error?
> Does adding `-ffreestanding` to the compile step of the raw object file fix the problem you are seeing and also avoid tampering with `__STDC_HOSTED__` macro?
Ah `-ffreestanding` works as well and its much cleaner. Thanks for the recommendation!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80178/new/
https://reviews.llvm.org/D80178
More information about the libc-commits
mailing list