bug-make
[Top][All Lists]
Advanced

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

[bug #62514] Regression. make ignores cli flags.


From: Dmitry Goncharov
Subject: [bug #62514] Regression. make ignores cli flags.
Date: Mon, 23 May 2022 20:16:47 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62514>

                 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.
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
MAKEFLAGS=-B
all:; $(info MAKEFLAGS=$(MAKEFLAGS))
$ /usr/bin/make -s
MAKEFLAGS=Bs
$ make -s
MAKEFLAGS=B
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:

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

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




reply via email to

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