From owner-freebsd-current@freebsd.org Mon Jan 23 19:18:31 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08398CBEE27 for ; Mon, 23 Jan 2017 19:18:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E5B80F6B for ; Mon, 23 Jan 2017 19:18:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id E2476CBEE26; Mon, 23 Jan 2017 19:18:30 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E03EBCBEE25 for ; Mon, 23 Jan 2017 19:18:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3444F6A for ; Mon, 23 Jan 2017 19:18:30 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::5436:f0fa:fd22:db1b] (unknown [IPv6:2001:7b8:3a7:0:5436:f0fa:fd22:db1b]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9A780488CF; Mon, 23 Jan 2017 20:18:27 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_04D49D47-F8C5-42BE-8839-04C6D868FBC6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: command line environment and port to equal CURRENT clang? From: Dimitry Andric In-Reply-To: Date: Mon, 23 Jan 2017 20:18:18 +0100 Cc: current Message-Id: <4350E7F0-7CDD-4B82-902A-7C65D1C45B59@FreeBSD.org> References: To: jbtakk@iherebuywisely.com X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 23 Jan 2017 19:18:31 -0000 --Apple-Mail=_04D49D47-F8C5-42BE-8839-04C6D868FBC6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Jan 2017, at 05:32, Jeffrey Bouquet = wrote: >=20 > ... that may work in /usr/src/sbin for example? > make clang=3D[/usr/ports/lang/??]clang-foo clang+ depend; make; # = so that a buildworld is not needed? > or that would have to be created as a feature.. The following appears to work: pkg install llvm39 export CC=3D/usr/local/bin/clang39 export CXX=3D/usr/local/bin/clang++39 export CPP=3D/usr/local/bin/clang-cpp cd /usr/src/sbin make obj make depend make Note that this may pick up the wrong versions of libraries, so do not be amazed if stuff blows up. Also note that clang in base has a few patches which might not be in the port, so you could also run into unexpected bugs in the port. -Dimitry --Apple-Mail=_04D49D47-F8C5-42BE-8839-04C6D868FBC6 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAliGVwMACgkQsF6jCi4glqP0+wCfX1DQkpYCdCT+/tuex4OIOy8H 7q8AoIHJmJZur8PfRRh5X9o0uFGlTgGC =gYVo -----END PGP SIGNATURE----- --Apple-Mail=_04D49D47-F8C5-42BE-8839-04C6D868FBC6--