This is an archive of the discontinued LLVM Phabricator instance.

Install llvm-readelf as part of -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON
Needs ReviewPublic

Authored by arichardson on Jun 19 2020, 2:43 AM.

Details

Summary

While llvm-readobj is not part of the normal toolchain llvm-readelf is
compatible with GNU readelf and installing it can be useful.
However, I was not able to add llvm-readelf without also installing
llvm-readobj. This can probably be solved by renaming the main CMake target
to be llvm-readelf and have llvm-readobj as a symlink instead.
Should I also try to make this change to avoid installing llvm-readobj or
is the current approach fine?

Diff Detail

Event Timeline

arichardson created this revision.Jun 19 2020, 2:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2020, 2:43 AM

I think we want to install both probably, so this approach looks right to me.
I'd like to hear other people opinion on that.

Yeah, I'm inclined to say we should have both too. There may be some users out there for e.g. COFF etc where people would be a bit surprised running llvm-readelf. Having both tools means we don't need to worry about which is a symlink of the other.

Yeah, I'm inclined to say we should have both too. There may be some users out there for e.g. COFF etc where people would be a bit surprised running llvm-readelf. Having both tools means we don't need to worry about which is a symlink of the other.

Sounds good to me, I'll drop D82172 in that case.