Browse Source

emit warning if using V8 version < 6.4.388

Stefan Siegl 7 years ago
parent
commit
52b9aa4521
1 changed files with 3 additions and 0 deletions
  1. 3 0
      config.m4

+ 3 - 0
config.m4

@@ -144,6 +144,9 @@ int main ()
     if test "$V8_API_VERSION" -lt 4006076 ; then
     if test "$V8_API_VERSION" -lt 4006076 ; then
        AC_MSG_ERROR([libv8 must be version 4.6.76 or greater])
        AC_MSG_ERROR([libv8 must be version 4.6.76 or greater])
     fi
     fi
+    if test "$V8_API_VERSION" -lt 6004388 ; then
+       AC_MSG_WARN([libv8 prior to 6.4.388.18 is missing speculative execution mitigations])
+    fi
     AC_DEFINE_UNQUOTED([PHP_V8_API_VERSION], $V8_API_VERSION, [ ])
     AC_DEFINE_UNQUOTED([PHP_V8_API_VERSION], $V8_API_VERSION, [ ])
     AC_DEFINE_UNQUOTED([PHP_V8_VERSION], "$ac_cv_v8_version", [ ])
     AC_DEFINE_UNQUOTED([PHP_V8_VERSION], "$ac_cv_v8_version", [ ])
   else
   else