[libc-commits] [libc] [libc] Add support for 'features.h' when targeting the GPU (PR #102037)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Aug 5 11:50:48 PDT 2024


https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/102037

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.


>From 0cb1256e50702895a4731ae333ee1e19dc71bcd0 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Mon, 5 Aug 2024 13:48:10 -0500
Subject: [PATCH] [libc] Add support for 'features.h' when targeting the GPU

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.
---
 libc/config/gpu/headers.txt | 1 +
 1 file changed, 1 insertion(+)

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



More information about the libc-commits mailing list