Date: Mon, 23 Jan 2017 20:18:18 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: jbtakk@iherebuywisely.com Cc: current <current@freebsd.org> Subject: Re: command line environment and port to equal CURRENT clang? Message-ID: <4350E7F0-7CDD-4B82-902A-7C65D1C45B59@FreeBSD.org> In-Reply-To: <E1cVWIi-0003Rg-08@rmm6prod02.runbox.com> References: <E1cVWIi-0003Rg-08@rmm6prod02.runbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <jbtakk@iherebuywisely.com> = 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4350E7F0-7CDD-4B82-902A-7C65D1C45B59>