Re: detecting clang from source code?
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.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)