Make the #error directive an error with MIPSpro.

This commit is contained in:
rillig 2007-03-07 01:37:18 +00:00
parent df8fff7998
commit 17d32cd56b

View file

@ -1,4 +1,4 @@
# $NetBSD: mipspro.mk,v 1.37 2006/12/15 12:46:24 martti Exp $
# $NetBSD: mipspro.mk,v 1.38 2007/03/07 01:37:18 rillig Exp $
#
# This is the compiler definition for the MIPSpro C compiler.
#
@ -75,6 +75,11 @@ _LANGUAGES.mipspro+= ${LANGUAGES.mipspro:M${_lang_}}
_WRAP_EXTRA_ARGS.CC+= -c99
.endif
# Normally, the #error directive only results in a warning (which is
# explicitly allowed in ISO C99), but we want it to be an error.
_WRAP_EXTRA_ARGS.CC+= -diag_error 1035
_WRAP_EXTRA_ARGS.CXX+= -diag_error 1035
# Prepend the path to the compiler to the PATH.
.if !empty(_LANGUAGES.mipspro)
PREPEND_PATH+= ${_MIPSPRO_DIR}/bin