svn commit: r277803 - projects/clang360-import/lib/clang/include
Brooks Davis
brooks at freebsd.org
Wed Jan 28 19:47:02 UTC 2015
On Wed, Jan 28, 2015 at 08:34:07PM +0100, Tijl Coosemans wrote:
> On Wed, 28 Jan 2015 20:28:06 +0100 Dimitry Andric <dim at FreeBSD.org> wrote:
> > On 28 Jan 2015, at 20:24, Tijl Coosemans <tijl at freebsd.org> wrote:
> >> That said, this commit breaks compiling with "cc -ffreestanding
> >> -nostdinc -I`cc -print-file-name=include`" because clang versions of
> >> std*.h headers aren't installed on FreeBSD which is yet another
> >> thing that FreeBSD does differently. Maybe now is a good time to fix
> >> that as well?
> >
> > We never installed any internal clang headers that were named the same
> > as our own headers, because they used to cause conflicts. I will have
> > a look if those conflicts have now been resolved, then we could install
> > them for use in freestanding environments.
>
> You may need to add something like this to some headers:
>
> #if __STDC_HOSTED__ && __has_include_next(<stddef.h>)
> #include_next <stddef.h>
> #else
> ....
> #endif
>
> The stdint.h header already seems to have that.
The std*.h headers in clang clash with ours currently. The errors about
different redefintions will need to be resolved before they can be
included in the base. Doing that would be really useful as it would
simplify the clang ports and make life easier for those of us who build
their own clang and use it from the build directory. Currently, the
build process for all the SRI/Cambridge variants of clang ends up with
some variant of:
ninja && rm lib/clang/3.6.0/include/std*.h
-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20150128/68e3411d/attachment.sig>
More information about the svn-src-projects
mailing list