This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Use 'llvm-config --components' to determine components
Needs ReviewPublic

Authored by mgorny on Dec 17 2019, 8:48 AM.

Details

Reviewers
dberris
justinkb
Summary

Use 'llvm-config --components' to determine available components rather
than relying on '--libs' to fail for non-available. This should fix
false positives when dylib is used.

Technically, it's a bug in llvm-config for '--libs' to return the dylib
for libraries that are not included in it. However, fixing this
triggers further bugs and it does not make much sense to put more effort
into this deprecated tool.

Diff Detail

Event Timeline

mgorny created this revision.Dec 17 2019, 8:48 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 17 2019, 8:48 AM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript