| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef _LIBCPP___CONFIGURATION_EXPERIMENTAL_H |
| 10 | #define _LIBCPP___CONFIGURATION_EXPERIMENTAL_H |
| 11 | |
| 12 | #include <__config_site> |
| 13 | |
| 14 | #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER |
| 15 | # pragma GCC system_header |
| 16 | #endif |
| 17 | |
| 18 | #if __has_feature(experimental_library) |
| 19 | # ifndef _LIBCPP_ENABLE_EXPERIMENTAL |
| 20 | # define _LIBCPP_ENABLE_EXPERIMENTAL |
| 21 | # endif |
| 22 | #endif |
| 23 | |
| 24 | // Incomplete features get their own specific disabling flags. This makes it |
| 25 | // easier to grep for target specific flags once the feature is complete. |
| 26 | #if defined(_LIBCPP_ENABLE_EXPERIMENTAL) || defined(_LIBCPP_BUILDING_LIBRARY) |
| 27 | # define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 1 |
| 28 | #else |
| 29 | # define _LIBCPP_HAS_EXPERIMENTAL_LIBRARY 0 |
| 30 | #endif |
| 31 | |
| 32 | #define _LIBCPP_HAS_EXPERIMENTAL_PSTL _LIBCPP_HAS_EXPERIMENTAL_LIBRARY |
| 33 | #define _LIBCPP_HAS_EXPERIMENTAL_TZDB _LIBCPP_HAS_EXPERIMENTAL_LIBRARY |
| 34 | #define _LIBCPP_HAS_EXPERIMENTAL_SYNCSTREAM _LIBCPP_HAS_EXPERIMENTAL_LIBRARY |
| 35 | #define _LIBCPP_HAS_EXPERIMENTAL_HARDENING_OBSERVE_SEMANTIC _LIBCPP_HAS_EXPERIMENTAL_LIBRARY |
| 36 | #define _LIBCPP_HAS_EXPERIMENTAL_OPTIONAL_ITERATOR _LIBCPP_HAS_EXPERIMENTAL_LIBRARY |
| 37 | |
| 38 | #endif // _LIBCPP___CONFIGURATION_EXPERIMENTAL_H |
| 39 | |