Open jyn514 opened 1 year ago
Note that the lack of line wrapping here is misleading; the original diagnostic was much harder to understand.
It would be nice to keep an option to show the full commandline. I sometimes have copied the commandline to execute manually as part of debugging.
I'd rather keep things as is, but if the output is shortened, then --verbose
could be used to provide the old behavior.
On Mach-O linkers, this could also be solved with the use of the -filelist
option (you pass a file that contains the filenames of the objects you want to link, one per line).
Unsure if other linkers have something similar, but it sounds probable that there would be some way to specify the files to link other than all of them via. the program arguments?
Code
Current output
Desired output
Rationale and extra context
Showing so many .o files is overwhelming and unhelpful. In the vast majority of cases, the exact object files and directories don't matter and showing the options passed to the linker is enough. It would be nice to hide them by default and only show them if the user explicitly opts-in.
Other cases
No response
Anything else?
HEAD is branched from 90a9f69c80812c8694959c1f2d5c336e3300d1e2.