tags 560693 upstream
severity 560693 wishlist
thanks

Hello,

On penktadienis 11 Gruodis 2009 15:32:51 Michal Čihař wrote:

> Cmake currently reports Clang compiler as GCC (what is not that bad as
> they are in most cases compatible), however it would be great if it
> would also provide way to distinguish these two compiler without
> introducing this check in every CMakeLists.txt where it is needed.
> 
> The compiler can be detected by looking for __clang__ define, what
> should be done before probing for GCC, because Clang defines most
> symbols GCC does.

But what's next? Just recognizing it does not provide much benefit. Clang 
should be supported properly by adjusting cmake behaviour where needed. This 
can only be done by a developer having enough knowledge of both cmake & clang. 
I don't see this happening unless you provide a patch which can be pushed to 
cmake upstream or upstream suddenly sees interest in supporting Clang. Having 
this as Debian-specific feature does not make sense at all.

Or Is Clang interface designed to be compatible with GNU compiler?

-- 
Modestas Vainius <modes...@vainius.eu>

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to