Skip to content

Commit 815cd72

Browse files
var-consttru
authored andcommitted
Address feedback
1 parent 10fa9bd commit 815cd72

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

libcxx/include/__config

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@
3838
# define _LIBCPP_FREESTANDING
3939
# endif
4040

41+
# if __has_feature(experimental_library)
42+
# ifndef _LIBCPP_ENABLE_EXPERIMENTAL
43+
# define _LIBCPP_ENABLE_EXPERIMENTAL
44+
# endif
45+
# endif
46+
47+
// Incomplete features get their own specific disabling flags. This makes it
48+
// easier to grep for target specific flags once the feature is complete.
49+
# if defined(_LIBCPP_ENABLE_EXPERIMENTAL) || defined(_LIBCPP_BUILDING_LIBRARY)
50+
# define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 1
51+
# else
52+
# define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 0
53+
# endif
54+
55+
# define _LIBCPP_HAS_EXPERIMENTAL_PSTL _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
56+
# define _LIBCPP_HAS_EXPERIMENTAL_TZDB _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
57+
# define _LIBCPP_HAS_EXPERIMENTAL_SYNCSTREAM _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
58+
# define _LIBCPP_HAS_EXPERIMENTAL_HARDENING_OBSERVE_SEMANTIC _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
59+
4160
// HARDENING {
4261

4362
// TODO: Remove in LLVM 21. We're making this an error to catch folks who might not have migrated.
@@ -232,25 +251,6 @@ _LIBCPP_HARDENING_MODE_DEBUG
232251
# define _LIBCPP_ABI_VCRUNTIME
233252
# endif
234253

235-
# if __has_feature(experimental_library)
236-
# ifndef _LIBCPP_ENABLE_EXPERIMENTAL
237-
# define _LIBCPP_ENABLE_EXPERIMENTAL
238-
# endif
239-
# endif
240-
241-
// Incomplete features get their own specific disabling flags. This makes it
242-
// easier to grep for target specific flags once the feature is complete.
243-
# if defined(_LIBCPP_ENABLE_EXPERIMENTAL) || defined(_LIBCPP_BUILDING_LIBRARY)
244-
# define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 1
245-
# else
246-
# define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 0
247-
# endif
248-
249-
# define _LIBCPP_HAS_EXPERIMENTAL_PSTL _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
250-
# define _LIBCPP_HAS_EXPERIMENTAL_TZDB _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
251-
# define _LIBCPP_HAS_EXPERIMENTAL_SYNCSTREAM _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
252-
# define _LIBCPP_HAS_EXPERIMENTAL_HARDENING_OBSERVE_SEMANTIC _LIBCPP_HAS_EXPERIMENTAL_LIBRARY
253-
254254
# if defined(__MVS__)
255255
# include <features.h> // for __NATIVE_ASCII_F
256256
# endif

0 commit comments

Comments
 (0)