How to determine type of system compiler in port?
Marcus von Appen
mva at FreeBSD.org
Tue Jan 21 22:58:50 UTC 2014
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
Take a look at the compiler.mk source file in Mk/Uses/compiler.mk for further
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
More information about the freebsd-ports