aboutsummaryrefslogtreecommitdiff
path: root/libcxx/utils
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-05-28 18:29:11 -0700
committerGitHub <noreply@github.com>2024-05-28 18:29:11 -0700
commit04f01a2b9cedc291fa7dd941de841dc957c75a33 (patch)
treee968dba798fe38053630b054562a3bb178bc11f1 /libcxx/utils
parent6abc3876c35bbe8fb5dd6435dc60f2c816b97ef6 (diff)
downloadllvm-04f01a2b9cedc291fa7dd941de841dc957c75a33.zip
llvm-04f01a2b9cedc291fa7dd941de841dc957c75a33.tar.gz
llvm-04f01a2b9cedc291fa7dd941de841dc957c75a33.tar.bz2
[libc++] Make the __availability header a sub-header of __config (#93083)
In essence, this header has always been related to configuration of the library but we didn't want to put it inside <__config> due to complexity reasons. Now that we have sub-headers in <__config>, we can move <__availability> to it and stop including it everywhere since we already obtain the required macros via <__config>.
Diffstat (limited to 'libcxx/utils')
-rwxr-xr-xlibcxx/utils/generate_feature_test_macro_components.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index 1e79f6c..490ecef 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -61,7 +61,8 @@ def add_version_header(tc):
# just libc++. It may depend on
# * macros defined by the compiler itself, or
# * macros generated by CMake.
-# In some cases we add also depend on macros defined in <__availability>.
+# In some cases we add also depend on macros defined in
+# <__configuration/availability.h>.
# libcxx_guard An optional string field. When this field is provided,
# `test_suite_guard` must also be provided. This field is used
# only to guard the feature-test macro in <version>. It may
@@ -1562,7 +1563,6 @@ def produce_version_header():
*/
-#include <__availability>
#include <__config>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)