Summary: Regression. make ignores cli flags.
                 Project: make
            Submitted by: dgoncharov
            Submitted on: Tue 24 May 2022 12:16:45 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: SCM
        Operating System: Any
           Fixed Release: None
           Triage Status: None


Follow-up Comments:

Date: Tue 24 May 2022 12:16:45 AM UTC By: Dmitry Goncharov <dgoncharov>
Commit f2771aa614d3a826b70973217c33f605fb4cd0c2 introduced function
reset_switches wipes out certain flags specified on the command line.

/usr/bin/make is make-4.3.
make is the latest make from git.

$ cat makefile
all:; $(info MAKEFLAGS=$(MAKEFLAGS))
$ /usr/bin/make -s
$ make -s
make: 'all' is up to date.

Flag '-s' is missing from MAKEFLAGS.
Also, the last output from make is "make: 'all' is up to date.".
This tells that '-s' is not in effect.
Similarly, reset_switches wipes out certain other options, e.g. -k, -S,
-l<value>, --debug=<value>, etc.
This patch deletes reset_switches and replaces it with a piece of code in
detect_switches to filter out duplicates.


Reply to this item at:


Message sent via Savannah

Reply via email to