This is an archive of the discontinued LLVM Phabricator instance.

[clang/cxx-interop] Teach clang to ignore availability errors that come from CF_OPTIONS
ClosedPublic

Authored by thakis on Aug 6 2023, 5:25 PM.

Details

Reviewers
hans
Summary

This cherry-picks https://github.com/apple/llvm-project/pull/6431
since without it, macOS 14 SDK headers don't compile when targeting
catalyst.

Fixes #64438.


The github issue has all the details: https://github.com/llvm/llvm-project/issues/64438

The patch maybe looks a bit eh, but doing something different downstream also seems a bit eh. The system headers are precision matched to this patch.

(I'll commit this with @zoecarver as author to not steal attribution 🙂)

Diff Detail

Event Timeline

thakis created this revision.Aug 6 2023, 5:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2023, 5:25 PM
thakis requested review of this revision.Aug 6 2023, 5:25 PM
hans accepted this revision.Aug 7 2023, 3:38 AM

lgtm

Maybe we want this for the release/17.x branch too?

This revision is now accepted and ready to land.Aug 7 2023, 3:38 AM
thakis added a comment.Aug 7 2023, 7:08 AM

lgtm

Thanks!

Maybe we want this for the release/17.x branch too?

Sure, trying that here: https://github.com/llvm/llvm-project/issues/64496