From owner-freebsd-current@FreeBSD.ORG Tue Nov 6 22:42:54 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 717A8C6E for ; Tue, 6 Nov 2012 22:42:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id 26C348FC08 for ; Tue, 6 Nov 2012 22:42:53 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:2034:b6ba:20c2:9fc9] (unknown [IPv6:2001:7b8:3a7:0:2034:b6ba:20c2:9fc9]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E28EB5C59; Tue, 6 Nov 2012 23:42:52 +0100 (CET) Message-ID: <5099926B.5060102@FreeBSD.org> Date: Tue, 06 Nov 2012 23:42:51 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Larry Rosenman Subject: Re: detecting clang from source code? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 22:42:54 -0000 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.