This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Fix modules builds when features are removed
ClosedPublic

Authored by ldionne on Jun 6 2022, 10:03 AM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Commits
rG0e9a01dcac99: [libc++] Fix modules builds when features are removed
Summary

When some headers are not available because we removed features like
localization or threads, the compiler should not try to include these
headers when building modules. To avoid that from happening, add a
requires-declaration that is never satisfied when the configuration
in use doesn't support a header.

rdar://93777687

Diff Detail

Event Timeline

ldionne created this revision.Jun 6 2022, 10:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 10:03 AM
ldionne requested review of this revision.Jun 6 2022, 10:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 10:03 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne updated this revision to Diff 434805.Jun 7 2022, 6:55 AM

Remove modules requirement that was incorrectly added during rebase.

ldionne updated this revision to Diff 434934.Jun 7 2022, 1:33 PM

Fix bootstrapping build.

ldionne updated this revision to Diff 435208.Jun 8 2022, 9:26 AM

Rebase to trigger CI -- I can't reproduce the failure locally.

ldionne accepted this revision as: Restricted Project.Jun 8 2022, 3:47 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 8 2022, 3:48 PM
This revision was automatically updated to reflect the committed changes.