xref: /freebsd-src/contrib/bmake/unit-tests/directive-error.mk (revision dba7b0ef928af88caa38728a73657b837aeeac93)
1*dba7b0efSSimon J. Gerraty# $NetBSD: directive-error.mk,v 1.5 2021/01/27 00:02:38 rillig Exp $
22c3632d1SSimon J. Gerraty#
306b9b3e0SSimon J. Gerraty# Tests for the .error directive, which prints an error message and exits
406b9b3e0SSimon J. Gerraty# immediately, unlike other "fatal" parse errors, which continue to parse
506b9b3e0SSimon J. Gerraty# until the end of the current top-level makefile.
6*dba7b0efSSimon J. Gerraty#
7*dba7b0efSSimon J. Gerraty# See also:
8*dba7b0efSSimon J. Gerraty#	opt-warnings-as-errors.mk
92c3632d1SSimon J. Gerraty
10*dba7b0efSSimon J. Gerraty# Before parse.c 1.532 from 2021-01-27, the ".error" issued an irrelevant
11*dba7b0efSSimon J. Gerraty# message saying "parsing warnings being treated as errors".
12*dba7b0efSSimon J. Gerraty.MAKEFLAGS: -W
13*dba7b0efSSimon J. Gerraty.error message
14