This is an archive of the discontinued LLVM Phabricator instance.

[Clang][LLD][cmake] Drop deprecated support for `llvm-config`-based build
AbandonedPublic

Authored by Ericson2314 on Jul 28 2022, 5:04 PM.

Details

Summary

This has been deprecated for Clang since D51714 (2018), and LLD since
D116492 (earlier in 2022).

That means both methods have been deprecated for at least two releases
(14 and 15), and Clang may more.

Not sure what the deprecation policy is, but I am opening this now for
whenever it's OK to land.

Diff Detail

Event Timeline

Ericson2314 created this revision.Jul 28 2022, 5:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2022, 5:04 PM
Herald added a subscriber: mgorny. · View Herald Transcript
Ericson2314 requested review of this revision.Jul 28 2022, 5:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2022, 5:04 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
compnerd accepted this revision.Jul 29 2022, 8:48 AM

Since it has been deprecated for 2 releases, it seems reasonable to cleanup. This seems good to me from the build side, please do wait a bit for anyone else to chime in on this.

This revision is now accepted and ready to land.Jul 29 2022, 8:48 AM
phosek accepted this revision.Aug 1 2022, 1:47 AM

LGTM we should consider removing llvm-config from other subprojects as a follow up cleanup.

Should I wait for anyone else / do something like announcing this on discourse?

It looks like the only other use case is libclc, which sadly only supports the old way so we will need to do another deprecation cycle I'd think for it.

Should I wait for anyone else / do something like announcing this on discourse?

It looks like the only other use case is libclc, which sadly only supports the old way so we will need to do another deprecation cycle I'd think for it.

I think it is fine to drop it from libclc without deprecating it.

tstellar accepted this revision.Aug 4 2022, 12:22 AM

LGTM. I just tested this patch in our build config and it works fine.

Ericson2314 abandoned this revision.Aug 4 2022, 5:19 AM

Abandoing based on @phosek's point in D128777 about it being nice to have it easy to revert them individually.