diff options
Diffstat (limited to 'deps/v8/include/v8config.h')
-rw-r--r-- | deps/v8/include/v8config.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/deps/v8/include/v8config.h b/deps/v8/include/v8config.h index acd34d7a1f..c1bb691f87 100644 --- a/deps/v8/include/v8config.h +++ b/deps/v8/include/v8config.h @@ -310,10 +310,6 @@ path. Add it with -I<path> to the command line // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html # define V8_HAS_COMPUTED_GOTO 1 -// Whether constexpr has full C++14 semantics, in particular that non-constexpr -// code is allowed as long as it's not executed for any constexpr instantiation. -# define V8_HAS_CXX14_CONSTEXPR 1 - #elif defined(__GNUC__) # define V8_CC_GNU 1 @@ -336,7 +332,10 @@ path. Add it with -I<path> to the command line # define V8_HAS_ATTRIBUTE_UNUSED 1 # define V8_HAS_ATTRIBUTE_VISIBILITY 1 # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL) -# define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard)) + +// [[nodiscard]] does not work together with with +// __attribute__((visibility(""))) on GCC 7.4 which is why there is no define +// for V8_HAS_CPP_ATTRIBUTE_NODISCARD. See https://crbug.com/v8/11707. # define V8_HAS_BUILTIN_ASSUME_ALIGNED 1 # define V8_HAS_BUILTIN_CLZ 1 @@ -348,11 +347,6 @@ path. Add it with -I<path> to the command line // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html #define V8_HAS_COMPUTED_GOTO 1 -// Whether constexpr has full C++14 semantics, in particular that non-constexpr -// code is allowed as long as it's not executed for any constexpr instantiation. -// GCC only supports this since version 6. -# define V8_HAS_CXX14_CONSTEXPR (V8_GNUC_PREREQ(6, 0, 0)) - #endif #if defined(_MSC_VER) |