bug-make
[Top][All Lists]
Advanced

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

[bug #63686] implement a flag to promote make warnings to fatal errors


From: Paul D. Smith
Subject: [bug #63686] implement a flag to promote make warnings to fatal errors
Date: Sun, 26 Feb 2023 23:13:10 -0500 (EST)

Follow-up Comment #6, bug #63686 (project make):

There are a few issues with overriding MAKEFLAGS in the makefile.

First, MAKEFLAGS are by definition passed to recursive makes.  So if you set
an error flag in a parent make, it will be set in the recursive makes as well.
 It would be difficult to avoid this for the user.

Second, MAKEFLAGS set inside the makefile would take precedence over flags
given on the command line, because warning options are cumulative with the
"last value set wins".  So if your command line said "--warn=ignore" but your
makefile had "MAKEFLAGS += --warn=error", the latter would take precedence
because the command line values are set first, then the addition happens when
the makefile is parsed.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63686>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]