This allows libtool to detect the presence of llvm-strip and use it with the options --strip-debug and --strip-unneeded, see http://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4?h=v2.4.6#n2210.
Also hook up the -V alias for objcopy.
Differential D54936
[llvm-objcopy] Hook up the -V alias to --version, output "GNU strip" mstorsjo on Nov 27 2018, 1:39 AM. Authored by
Details This allows libtool to detect the presence of llvm-strip and use it with the options --strip-debug and --strip-unneeded, see http://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4?h=v2.4.6#n2210. Also hook up the -V alias for objcopy.
Diff Detail Event TimelineComment Actions Should we do the same thing (adding "comptabile with GNU objcopy") for llvm-objcopy as well as llvm-strip?
Comment Actions I don't know of any build system that checks for that in the output, but I guess we could do that for consistency.
Comment Actions Changed to keep the check for {{ version }} in the llvm-strip output, outputting "compatible with GNU objcopy" as well (but no test for that as I haven't seen a specific need for that string somewhere yet). Comment Actions I think it would make sense to test in both cases, honestly, but I'm not too fussed. Otherwise, LGTM. You might want to wait on @jakehehrlich to give his opinion on "GNU compatible" output in both tools before committing. Comment Actions I think this is fine. GNU compatibility is a tricky subject with lots of nuances that I keep discovering but it is decidedly a stated goal. |
This should probably check both {{version}} and "GNU strip", right?