This is an archive of the discontinued LLVM Phabricator instance.

Let llvm-config --system-libs print full paths if we use them
AbandonedPublic

Authored by aaronpuchert on Sep 12 2022, 9:48 AM.

Details

Summary

CMake's find_package produces full paths even if we could rely on the
linker to find the library in the standard search path. In that case
perhaps llvm-config --system-libs should reflect this and also use
full paths to mirror the link command that we're using.

This could be an issue for distributors, if they build with libraries in
some local path, but expect users to have them in their standard search
path.

Fixes an issue raised in D132799, since we're now using the same list
for linking libLLVM.

As an alternative, we could produce two different lists, one with just
stems for llvm-config and another with (possibly) full paths for
linking libLLVM.

Diff Detail

Event Timeline

aaronpuchert created this revision.Sep 12 2022, 9:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 12 2022, 9:48 AM
aaronpuchert requested review of this revision.Sep 12 2022, 9:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 12 2022, 9:48 AM
aaronpuchert abandoned this revision.Oct 7 2022, 5:04 AM

No longer needed as we went with a different solution in D132799.