[libc-commits] [PATCH] D159021: [libc] Remove hard dependencies on linux from macros headers

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 28 14:54:17 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: sivachandra, lntue, michaelrj.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
jhuber6 requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159021

Files:
  libc/include/llvm-libc-macros/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159021.554062.patch
Type: text/x-patch
Size: 3562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230828/342a0108/attachment.bin>


More information about the libc-commits mailing list