[cfe-dev] Difference between clang and clang++

John McCall rjmccall at apple.com
Mon May 30 02:27:37 PDT 2011


On May 30, 2011, at 2:19 AM, Sean Hunt wrote:
> On 11-05-30 02:15 AM, John McCall wrote:
>> On May 30, 2011, at 2:07 AM, Nikola Smiljanic wrote:
>>> Hi all,
>>> 
>>> If somebody would explain the difference between clang and clang++. I downloaded 2.9 release and clang.exe and clang++.exe are identical files?
>> 
>> Invoking the compiler as clang++ requests it to compile and link code as C++.  This typically only matters when linking object files, where it causes the C++ standard library to be linked in.
>> 
>> I don't know why (or whether) these files are independent on disk;  on Unix-y platforms, clang++ is just a symlink.
> 
> They might be hard linked?

I had the impression that the Windows filesystem was sane enough to not allow hard-linking, but I am prepared to be corrected.

I rate it more likely that some packager just didn't want to deal with symlinks.

John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110530/f3ef8366/attachment.html>


More information about the cfe-dev mailing list