[all-commits] [llvm/llvm-project] cffc1a: [libc++] Avoid including <features.h> on arbitrary...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Sat Feb 15 01:54:22 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cffc1ac3491c891ef4f80bcbfa685710e477eeac
https://github.com/llvm/llvm-project/commit/cffc1ac3491c891ef4f80bcbfa685710e477eeac
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2025-02-15 (Sat, 15 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.
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