Re: detecting clang from source code?

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Tue, 06 Nov 2012 23:42:51 +0100
On 2012-11-06 23:37, Larry Rosenman wrote:
> Are there any defines that code can use in #ifdef/#if et al to tell
> it's being compiled with clang?
>
> Vic Abell (lsof author) is cleaning up lsof to compile cleanly with
> clang and would like to know, since the
> default is now clang on -CURRENT.

Clang defines __clang__ as a preprocessor macro.
Received on Tue Nov 06 2012 - 21:42:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC