tup icon indicating copy to clipboard operation
tup copied to clipboard

proposal: make logging cleaner by printing %o et al relative to the variant dir

Open uohmak4fvpqe opened this issue 4 years ago • 0 comments

Consider :

: some_input_files |> ^ %o^ the_command |> output_name

I like to display the output file (e.g. "file.o"), not a command id plus input files as is traditional (stuff like "CC file.c") The problem is, when using variants the print is redundant and too verbose, as in:

[0.007s] [build-release-native-gnu] pro/src: ../../../build-release-native-gnu/pro/src/../file.o

when I would like

[0.007s] [build-release-native-gnu] pro/src: ../file.o

I.e, I would like the logging to display %o in the shortest form relative to the prefixed directory in [ ... ] ... :, not relative to the source working directory.

uohmak4fvpqe avatar Feb 21 '22 22:02 uohmak4fvpqe