[all-commits] [llvm/llvm-project] 876a5c: [libc++] Avoid including <features.h> on arbitrary...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Wed Feb 19 06:27:39 PST 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 876a5c9e5905a9666748632afba1ff83200ed95b
https://github.com/llvm/llvm-project/commit/876a5c9e5905a9666748632afba1ff83200ed95b
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2025-02-19 (Wed, 19 Feb 2025)
Changed paths:
M libcxx/include/__configuration/platform.h
Log Message:
-----------
[libc++] Avoid including <features.h> on arbitrary platforms (#125587)
This partially reverts commit 5f2389d4. That commit started checking
whether <features.h> was a valid include unconditionally, however codebases
are free to have such a header on their search path, which breaks compilation.
LLVM libc now provides a more standard way of getting configuration macros
like __LLVM_LIBC__.
After this patch, we only include <features.h> when we're on Linux or
when we're compiling for GPUs.
(cherry picked from commit cffc1ac3491c891ef4f80bcbfa685710e477eeac)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list