[libc-commits] [libc] [libc] Add support for 'features.h' when targeting the GPU (PR #102037)
via libc-commits
libc-commits at lists.llvm.org
Mon Aug 5 11:51:24 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Joseph Huber (jhuber6)
<details>
<summary>Changes</summary>
Summary:
`features.h` provides some information about the C library, provide this
on the GPU so external users can tell if it's the LLVM C library.
---
Full diff: https://github.com/llvm/llvm-project/pull/102037.diff
1 Files Affected:
- (modified) libc/config/gpu/headers.txt (+1)
``````````diff
diff --git a/libc/config/gpu/headers.txt b/libc/config/gpu/headers.txt
index 1d4038d5eb45a..f01edb308b01b 100644
--- a/libc/config/gpu/headers.txt
+++ b/libc/config/gpu/headers.txt
@@ -14,6 +14,7 @@ set(TARGET_PUBLIC_HEADERS
libc.include.stdio
libc.include.wchar
libc.include.uchar
+ libc.include.features
# Header for RPC extensions
libc.include.gpu_rpc
``````````
</details>
https://github.com/llvm/llvm-project/pull/102037
More information about the libc-commits
mailing list