This is an archive of the discontinued LLVM Phabricator instance.

[bolt] Honor LLVM_LIBDIR_SUFFIX
ClosedPublic

Authored by serge-sans-paille on Oct 30 2022, 10:29 AM.

Details

Summary

Some distribution install libraries under lib64. LLVM supports this through LLVM_LIBDIR_SUFFIX, have bolt do the same.

Diff Detail

Event Timeline

Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
serge-sans-paille requested review of this revision.Oct 30 2022, 10:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2022, 10:29 AM

Add missing header

rafauler accepted this revision.Oct 31 2022, 4:12 PM

Thanks! LGTM

This revision is now accepted and ready to land.Oct 31 2022, 4:12 PM
This revision was automatically updated to reflect the committed changes.

@serge-sans-paille Some distributions's gcc multilib scheme uses lib64. For llvm-project's libraries, it does not necessarily use lib64. I'd pretty strongly object to complicate things with LLVM_LIBDIR_SUFFIX. Actually LLVM_LIBDIR_SUFFIX should use go away.

@MaskRay I have no personnal attachment to LLVM_LIBDIR_SUFFIX :-) It's just there,a nd used at least of Fedora packaging, so this patch makes its use consistent. I would be happy if we moved to GNUInstallDir all the way. If that's what you had in mind I can give it a try.

@MaskRay I have no personnal attachment to LLVM_LIBDIR_SUFFIX :-) It's just there,a nd used at least of Fedora packaging, so this patch makes its use consistent. I would be happy if we moved to GNUInstallDir all the way. If that's what you had in mind I can give it a try.

OK:) If Fedora uses LLVM_LIBDIR_SUFFIX=64. You may check whether it works with an empty LLVM_LIBDIR_SUFFIX.