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

Attachment: pgp_DJQJpUzD_.pgp
Description: PGP signature

Reply via email to