Open Quuxplusone opened 6 years ago
I think this is a nice feature to have, but please also consider that such command lines might leak information about the build system(s), which may be sensitive. This could also make it more difficult to get reproducible builds.
So if it is added, I would suggest not turning it on by default, at least.
I wonder if it is useful to embed more information to lld-generated binaries. Currently we put lld version number to a .comment section, and I found that very useful.
We may want to embed the entire command line to a .comment section as well, so that we can trace how an executable or DSO was created.