Date: Tue, 06 Nov 2012 17:44:31 -0500 From: Jung-uk Kim <jkim@FreeBSD.org> To: Larry Rosenman <ler@lerctr.org> Cc: freebsd-current@freebsd.org Subject: Re: detecting clang from source code? Message-ID: <509992CF.2040900@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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-11-06 17:37:41 -0500, 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. #ifdef __clang__ /* clang-specific stuff */ #else /* Something else */ #endif Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCZks8ACgkQmlay1b9qnVPIagCfXtDRXzUkPI5PowyCjFFxp6HU bHQAn3yAddLwonekcrkl8O9/0BSRVHR2 =CUn6 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?509992CF.2040900>