This is an archive of the discontinued LLVM Phabricator instance.

[clang][lldb][cmake] Use new `*_INSTALL_LIBDIR_BASENAME` CPP macro
ClosedPublic

Authored by Ericson2314 on Aug 20 2022, 8:27 AM.

Details

Summary

Use this instead of *_LIBDIR_SUFFIX, from which it is computed.

This gets us ready for D130586, in which *_LIBDIR_SUFFIX is
deprecated.

Diff Detail

Event Timeline

Ericson2314 created this revision.Aug 20 2022, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2022, 8:27 AM
Herald added a subscriber: mgorny. · View Herald Transcript
Ericson2314 requested review of this revision.Aug 20 2022, 8:27 AM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptAug 20 2022, 8:27 AM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 20 2022, 9:52 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.

D130586 was approved; this is a subset; this had no test failures, so I just went ahead and landed it.

thakis added a subscriber: thakis.Aug 20 2022, 10:40 AM

I fixed up the gn build after this in 804d4594cbe217ae817b6786b0e9965283f78aa2

(ie if you revert that, it'd be appreciated if you could revert that in the same commit)

OK Thanks @thakis --- I was confused why the last GN fixup added but didn't remove lines. That clears it up!

In the long term we should just remove the CLANG_INSTALL_LIBDIR_BASENAME customization. This is supposed for GCC multilib lib32 lib64 names but we don't necessarily use it for Clang + compiler-rt files.

Thanks @MaskRay that's good to know.