Date: Tue, 21 Jan 2014 23:55:55 +0100 From: Marcus von Appen <mva@FreeBSD.org> To: Lev Serebryakov <lev@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: How to determine type of system compiler in port? Message-ID: <20140121225555.GC1370@medusa.sysfault.org> In-Reply-To: <1603752718.20140122024525@serebryakov.spb.ru> References: <1603752718.20140122024525@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--RIYY1s2vRbPFwWeW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On, Tue Jan 21, 2014, Lev Serebryakov wrote: > Hello, Ports. > > I want to turn off some clang-specific warnings via CFLAGS, as I'm not > able to patch all places when "dirty" (but valid!) code is used and upstream > software uses "-Werror"... > > I could not find any mentions of "clang" in bsd.port.mk and COMPILER_TYPE > is not defined for ports. There's an app^^^Uses for it: compiler.mk Include a USES= compiler in your Makefile (or append compiler to your existing USES). Afterwards, you can access e.g. COMPILER_TYPE after including bsd.port.pre.mk. Take a look at the compiler.mk source file in Mk/Uses/compiler.mk for further information. Cheers Marcus --RIYY1s2vRbPFwWeW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlLe+vsACgkQi68/ErJnpkePkgCeMNSczt1Y8YCkl5PZZMmeTsJC mcEAoM79dguYMJC2F2O34i9W4TEKwRfd =2mah -----END PGP SIGNATURE----- --RIYY1s2vRbPFwWeW--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140121225555.GC1370>