bfgroup / b2

B2 makes it easy to build C++ projects, everywhere.
https://www.bfgroup.xyz/b2/
Boost Software License 1.0
76 stars 228 forks source link

Option to turn down verbosity #302

Open h-vetinari opened 1 year ago

h-vetinari commented 1 year ago

Make sure you completed the following tasks

Found https://github.com/boostorg/build/issues/348 which mentions:

[...] common.copy (which is in fact overly verbose when it comes to installing the headers. :-) )

Environment and version details

Describe your use case

A default boost install will install about ~15000 headers. Each of those headers generates 3 lines of logs, à la:

common.copy %SRC_DIR%\temp_prefix\include\boost\type.hpp
%SRC_DIR%\boost\type.hpp
       1 file(s) copied.

This generates 10's of thousands of useless lines in the logs that make them unnecessarily hard to navigate.

Describe the solution you'd like

An option --quiet or --verbose=<level>

Alternatives, if applicable

...

Additional context

Stunned that this does not exist already (I tried looking in the docs & the internet, but didn't find anything).

Kojoley commented 1 year ago

I would also considered this a performance issue because currently virtual-targets.register is a huge bottle-neck, 3568793 out of 3687209 (96.8%) calls are to register these headers.

grafikrobot commented 1 year ago

There are two issues in this:

pdimov commented 3 months ago

I think that this is why I made --with-headers work, so that one can two-phase install as in

b2 -d0 --with-headers install
b2 install
Kojoley commented 3 months ago

I think 1 file(s) copied. output should be always suppressed (I have a PR for the same thing in tests https://github.com/bfgroup/b2/pull/390).

copy action could be defined with quietly modifier like mkdir already does so common.copy ... lines will appear only with -d+2.