From 8bd860bde9f384d25f73deb6b16dcb01b605e863 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sun, 31 Oct 2021 12:01:08 +0100 Subject: [PATCH] Update to use libv8-node 16.x (#210) * Update to use libv8-node 16.3.0 Based on V8 9.0, his is the new LTS, node 15 now being unsupported. It notably introduces single threaded mode. Requiring c++14 is apparently the only change needed for this major. A separate PR will add a more helpful install time check for compiler requirements. * Disable pointer compression Node 16.4.0 introduced new cage flags for the experimental pointer compression stuff. Unfortunately something fails and none of them are set which causes the build to bail out because of the inconsistency. * Update to use libv8-node 16.10.0 --- ext/mini_racer_extension/extconf.rb | 4 ++-- lib/mini_racer/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/mini_racer_extension/extconf.rb b/ext/mini_racer_extension/extconf.rb index 7881f203..8b9f3033 100644 --- a/ext/mini_racer_extension/extconf.rb +++ b/ext/mini_racer_extension/extconf.rb @@ -11,9 +11,9 @@ $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" $CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or IS_DARWIN -$CPPFLAGS += " -std=c++0x" +$CPPFLAGS += " -std=c++14" $CPPFLAGS += " -fpermissive" -$CPPFLAGS += " -DV8_COMPRESS_POINTERS" +#$CPPFLAGS += " -DV8_COMPRESS_POINTERS" $CPPFLAGS += " -fvisibility=hidden " $CPPFLAGS += " -Wno-reserved-user-defined-literal" if IS_DARWIN diff --git a/lib/mini_racer/version.rb b/lib/mini_racer/version.rb index 7ad2df87..13d5b196 100644 --- a/lib/mini_racer/version.rb +++ b/lib/mini_racer/version.rb @@ -2,5 +2,5 @@ module MiniRacer VERSION = "0.4.0" - LIBV8_NODE_VERSION = "~> 15.14.0.0" + LIBV8_NODE_VERSION = "~> 16.10.0.0" end