[cfe-users] clang, gcc, g++ ABI, and CMake

Nick Lewycky nlewycky at google.com
Sun Aug 11 19:28:07 PDT 2013


On 11 August 2013 12:59, Tom Browder <tom.browder at gmail.com> wrote:

> I want to start using clang and clang++ but have a few questions:
>
> 1.  Has anyone a working, general solution for driving a CMake-built
> project with clang or clang++ (using build directories not polluted by
> gcc/g++ attempts)?
>
> 2.  Are clang- and clang++-built libraries and programs
> interchangeable with gcc- and g++-built libraries and programs?
>

Yes. GCC and Clang implement the same ABI, any issues here is a bug either
in GCC or in Clang.


>
> 3.  Are clang- and clang++-built libraries and programs usable on
> another Linux host (same distro, both 64-bit) without LLVM installed?
>

Yes. Clang built binaries don't inherently rely on llvm.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130811/1858fd55/attachment.html>


More information about the cfe-users mailing list