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

via libc-commits libc-commits at lists.llvm.org
Mon Aug 5 12:52:47 PDT 2024


Author: Joseph Huber
Date: 2024-08-05T14:52:44-05:00
New Revision: c4ec19b985815b664cc598a608acc0906d29d902

URL: https://github.com/llvm/llvm-project/commit/c4ec19b985815b664cc598a608acc0906d29d902
DIFF: https://github.com/llvm/llvm-project/commit/c4ec19b985815b664cc598a608acc0906d29d902.diff

LOG: [libc] Add support for 'features.h' when targeting the GPU (#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.

Added: 
    

Modified: 
    libc/config/gpu/headers.txt

Removed: 
    


################################################################################
diff  --git a/libc/config/gpu/headers.txt b/libc/config/gpu/headers.txt
index 5a2283afad246..99280b7563a80 100644
--- a/libc/config/gpu/headers.txt
+++ b/libc/config/gpu/headers.txt
@@ -15,6 +15,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