This is an archive of the discontinued LLVM Phabricator instance.

Deprecate LLVM_BUILD_EXTERNAL_COMPILER_RT
Needs ReviewPublic

Authored by beanz on Apr 26 2022, 5:03 PM.

Details

Summary

This patch goes with the RFC posted here:
https://discourse.llvm.org/t/rfc-deprecate-and-remove-llvm-build-external-compiler-rt/62058

Compiler-RT is built with way too many different configurations, and we
should reduce duplicateion where possible.

Diff Detail

Event Timeline

beanz created this revision.Apr 26 2022, 5:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2022, 5:03 PM
Herald added a subscriber: mgorny. · View Herald Transcript
beanz requested review of this revision.Apr 26 2022, 5:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2022, 5:03 PM
beanz updated this revision to Diff 425353.Apr 26 2022, 5:19 PM

Making the warning message more specific.

I don't think many people are gonna notice a warning in the general spew of CMake configuration, tbh. Would it be too disruptive to make this an error instead and have a CMake option you can pass to get rid of the error?

beanz added a comment.Apr 26 2022, 5:48 PM

Making it an ERROR and providing an option to downgrade it to a WARNING seems reasonable to me. Thoughts?

Making it an ERROR and providing an option to downgrade it to a WARNING seems reasonable to me. Thoughts?

One nice property this would have is it would (eventually) allow us to collect a list of all the places that depend on this old code. It is potentially quite disruptive though.

I'd be in favor of defaulting to an ERROR and providing an option to downgrade to a WARNING.

I spoke to a few other engineers in Apple. They are

  1. Happy for us to proceed with marking LLVM_BUILD_EXTERNAL_COMPILER_RT as deprecated.
  2. Okay with using LLVM_BUILD_EXTERNAL_COMPILER_RT being an error by default that can be downgraded to a warning using a CMake cache option.

@beanz If you can adapt the patch to make the warning into an error with a way to downgrade then I'll happily approve.

smeenai resigned from this revision.May 3 2022, 3:58 PM

LGTM after changing to an error with a warning downgrade. Resigning to clear my queue, plus the Apple folks should get the final accept here :)

ldionne resigned from this revision.Sep 7 2023, 8:48 AM