[cfe-dev] Duplicated header between Clang and MSVC - why?

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 2 07:57:53 PDT 2019


Certain low level headers are very tightly tied to the compiler
implementation (containing compiler intrinsics, etc) - so they have to be
provided by/paired with the compiler.

On Tue, Oct 1, 2019 at 11:58 PM Gaier, Bjoern via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello Clang-Experts,
>
>
>
> I’m using Clang-CL in Visual Studio – everything is working fine! Hooray!
>
> But recently I noticed that some header files related to the C-Library are
> duplicated on my hard drive. For example: stddef.h – so I searched for it
> and noticed, that Visual Studio has like… 5 of them, but all related to
> different versions of MSVC. That made sense to me, but then: surprise! I
> also have that file under “C:\Program Files\LLVM9\lib\clang\9.0.0\include”
> being obviously related to Clang. I also noticed that there are many files
> duplicated between Clang and MSVC.
>
>
>
> Now I wonder… If I run Clang-CL, should I use the most up to date MSVC
> header or the Clang one?
>
> Why are these files duplicated anyway?
>
>
>
> I feel like, that this is a silly question, but I seriously have no idea.
>
>
>
> Kind greetings
>
> Björn
> Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816,
> USt.ID-Nr. DE 114 165 789 Geschäftsführer: Dr. Hiroshi Nakamura, Dr. Robert
> Plank, Markus Bode, Heiko Lampert, Takashi Nagano, Takeshi Fukushima.
> Junichi Tajika
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191002/1afd24b1/attachment.html>


More information about the cfe-dev mailing list