bug-make
[Top][All Lists]
Advanced

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

[bug #60730] Emit fewer enter/leave messages with -O


From: Tom Tromey
Subject: [bug #60730] Emit fewer enter/leave messages with -O
Date: Fri, 4 Jun 2021 18:33:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

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

                 Summary: Emit fewer enter/leave messages with -O
                 Project: make
            Submitted by: tromey
            Submitted on: Fri 04 Jun 2021 04:33:01 PM MDT
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

I recently started using 'make -O' to get output that
is more easily read, and also more easily digested by Emacs.
I am typically building gdb, and this results in output like:

make[2]: Entering directory '/home/tromey/gdb/build/gdb'
  CXX    dwarf2/expr.o
make[2]: Leaving directory '/home/tromey/gdb/build/gdb'
make[2]: Entering directory '/home/tromey/gdb/build/gdb'
  CXX    dwarf2/leb.o
make[2]: Leaving directory '/home/tromey/gdb/build/gdb'
make[2]: Entering directory '/home/tromey/gdb/build/gdb'
  CXX    dwarf2/index-cache.o
make[2]: Leaving directory '/home/tromey/gdb/build/gdb'
make[2]: Entering directory '/home/tromey/gdb/build/gdb'
  CXX    dwarf2/line-header.o
make[2]: Leaving directory '/home/tromey/gdb/build/gdb'


That is, it prints many redundant enter/leave notices.
It seems like these could be batched -- delay printing
the 'leave' notice until some further event, and then
only print it if the coming 'enter' notice will mention
some other directory.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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