Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:26

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP___CXX03___CONFIGURATION_COMPILER_H
0011 #define _LIBCPP___CXX03___CONFIGURATION_COMPILER_H
0012 
0013 #include <__cxx03/__configuration/config_site_shim.h>
0014 
0015 #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
0016 #  pragma GCC system_header
0017 #endif
0018 
0019 #if defined(__apple_build_version__)
0020 // Given AppleClang XX.Y.Z, _LIBCPP_APPLE_CLANG_VER is XXYZ (e.g. AppleClang 14.0.3 => 1403)
0021 #  define _LIBCPP_COMPILER_CLANG_BASED
0022 #  define _LIBCPP_APPLE_CLANG_VER (__apple_build_version__ / 10000)
0023 #elif defined(__clang__)
0024 #  define _LIBCPP_COMPILER_CLANG_BASED
0025 #  define _LIBCPP_CLANG_VER (__clang_major__ * 100 + __clang_minor__)
0026 #elif defined(__GNUC__)
0027 #  define _LIBCPP_COMPILER_GCC
0028 #  define _LIBCPP_GCC_VER (__GNUC__ * 100 + __GNUC_MINOR__)
0029 #endif
0030 
0031 #ifdef __cplusplus
0032 
0033 // Warn if a compiler version is used that is not supported anymore
0034 // LLVM RELEASE Update the minimum compiler versions
0035 #  if defined(_LIBCPP_CLANG_VER)
0036 #    if _LIBCPP_CLANG_VER < 1700
0037 #      warning "Libc++ only supports Clang 17 and later"
0038 #    endif
0039 #  elif defined(_LIBCPP_APPLE_CLANG_VER)
0040 #    if _LIBCPP_APPLE_CLANG_VER < 1500
0041 #      warning "Libc++ only supports AppleClang 15 and later"
0042 #    endif
0043 #  elif defined(_LIBCPP_GCC_VER)
0044 #    if _LIBCPP_GCC_VER < 1400
0045 #      warning "Libc++ only supports GCC 14 and later"
0046 #    endif
0047 #  endif
0048 
0049 #endif
0050 
0051 #endif // _LIBCPP___CXX03___CONFIGURATION_COMPILER_H