Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/make



Module Name:    src
Committed By:   rillig
Date:           Sun Nov  1 00:24:57 UTC 2020

Modified Files:
        src/usr.bin/make: main.c nonints.h parse.c
        src/usr.bin/make/unit-tests: lint.exp

Log Message:
make(1): in lint mode, exit with error status on errors

Calling Parse_Error during parsing has always led to a nonzero exit
status.  Calling Parse_Error later, when expanding the shell commands,
has had no effect on the exit status.  Neither had calling Error.

To make make a reliable tool, it has to report errors as they occur.
Enable this strict behavior in lint mode for now.  Lint mode has to be
enabled explicitly, preserving the default behavior.


To generate a diff of this commit:
cvs rdiff -u -r1.420 -r1.421 src/usr.bin/make/main.c
cvs rdiff -u -r1.148 -r1.149 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.419 -r1.420 src/usr.bin/make/parse.c
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/lint.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index