This is an archive of the discontinued LLVM Phabricator instance.

[libc] Remove hard dependencies on linux from macros headers
ClosedPublic

Authored by jhuber6 on Aug 28 2023, 2:54 PM.

Details

Summary

Currently all of this logic expects to include and link with the headers
in the linux/ directory. This patch adds a wrapper macro to optionally
add the appropriate dependency if it exists. This is preliminary to
adding some GPU specific versions of these files.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 28 2023, 2:54 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 28 2023, 2:54 PM
jhuber6 requested review of this revision.Aug 28 2023, 2:54 PM
lntue accepted this revision.Aug 28 2023, 9:22 PM
This revision is now accepted and ready to land.Aug 28 2023, 9:22 PM