forked from OSchip/llvm-project
Detect relaxed constexpr rules for gcc versions
llvm-svn: 250802
This commit is contained in:
parent
79be9e8cb5
commit
1c4526757e
|
@ -451,8 +451,11 @@ namespace std {
|
|||
#define _LIBCPP_HAS_NO_CONSTEXPR
|
||||
#endif
|
||||
|
||||
// No version of GCC supports relaxed constexpr rules
|
||||
// Determine if GCC supports relaxed constexpr
|
||||
#if !defined(__cpp_constexpr) || __cpp_constexpr < 201304L
|
||||
#define _LIBCPP_HAS_NO_CXX14_CONSTEXPR
|
||||
#endif
|
||||
|
||||
// GCC 5 will support variable templates
|
||||
#define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
|
||||
|
||||
|
|
Loading…
Reference in New Issue