Date: Tue, 06 Nov 2012 23:42:51 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Larry Rosenman <ler@lerctr.org> Cc: freebsd-current@freebsd.org Subject: Re: detecting clang from source code? Message-ID: <5099926B.5060102@FreeBSD.org> In-Reply-To: <ad01692499600d99ead805e9abe0db4d@webmail.lerctr.org> References: <ad01692499600d99ead805e9abe0db4d@webmail.lerctr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5099926B.5060102>