-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make make V=1
print ECHO
lines in Makefile
and *.mk
.
#5875
Conversation
Currently `make V=1` doesn't print `ECHO` lines unlike `make Q=`. E.g. The `make main.o` shows the following result in both cases. * In case of `make Q=`, set `ECHO1=0`, `ECHO0=echo`, `ECHO=@echo`. ``` $ make Q= main.o compiling ./main.c ... ``` * In case of `make V=1`, set `ECHO1=:`, `ECHO0=:`, `ECHO=@:`. ``` $ make V=1 main.o ... ``` As `V=1` means verbose mode, we think it should print the `ECHO` lines too. This commit makes `make V=1` set `ECHO1=0`, `ECHO0=echo`, `ECHO=@echo`. [ruby-core:18756]
91990c9
to
2fbb3b0
Compare
We disabled |
I can understand your intent that we don't want to print unnecessary logs. But the reason is because it is not natural to see that the verbose mode (= a kind of log level: "debug" mode) is not printing logs in the non-verbose mode (= a kind of log level: "info" mode). For example, in
Here is the verbose level 1 mode, a kind of log level "debug1" mode that prints both "info" and "debug1" logs.
Here is the verbose level 2 mode, a kind of log level "debug2" mode that prints "info", "debug1" and "debug2" logs.
I wanted to see the logs of non-verbose mode in verbose mode. |
@@ -5,8 +5,7 @@ NULLCMD = @NULLCMD@ | |||
silence = no # yes/no | |||
yes_silence = $(silence:no=) | |||
no_silence = $(silence:yes=) | |||
n=$(NULLCMD) | |||
ECHO1 = $(V:1=$n) | |||
ECHO1 = $(V:1=0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this PR's function is approved, this line can be changed more.
ECHO1 = $(V:1=0)
Maybe it means if V
is 1
, the ECHO1
is set as 0
, and if V
is 0
(not equal 1
), ECHO1
is set as V
(= 0
). It might be better for the line to be changed as follows.
ECHO1 = 0
I can see this behavior printing text Line 1977 in cf71e5f
|
I would close this PR as we can use |
This PR fixes https://bugs.ruby-lang.org/issues/18756 .
Currently
make V=1
doesn't printECHO
lines unlikemake Q=
.E.g. The
make main.o
shows the following result in both cases.In case of
make Q=
, setECHO1=0
,ECHO0=echo
,ECHO=@echo
.In case of
make V=1
, setECHO1=:
,ECHO0=:
,ECHO=@:
.As
V=1
means verbose mode, we think it should print theECHO
lines too.This commit makes
make V=1
setECHO1=0
,ECHO0=echo
,ECHO=@echo
.[ruby-core:18756]
I tested the following commands for both before and after this PR, and confirmed the only intended
ECHO
lines are printed after this PR.