Skip to content

[libc] Add support for 'features.h' when targeting the GPU #102037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Aug 5, 2024

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.

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.
@llvmbot
Copy link
Member

llvmbot commented Aug 5, 2024

@llvm/pr-subscribers-libc

Author: Joseph Huber (jhuber6)

Changes

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 --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

@jhuber6 jhuber6 merged commit c4ec19b into llvm:main Aug 5, 2024
6 of 7 checks passed
@jhuber6 jhuber6 deleted the gpu_features branch October 14, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants