From 39872f48f950d2f391a589274741162736e0eab5 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Tue, 22 Jun 2021 12:48:02 +0200 Subject: [PATCH 1/3] 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. --- ext/mini_racer_extension/extconf.rb | 2 +- lib/mini_racer/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mini_racer_extension/extconf.rb b/ext/mini_racer_extension/extconf.rb index 7881f203..707b800d 100644 --- a/ext/mini_racer_extension/extconf.rb +++ b/ext/mini_racer_extension/extconf.rb @@ -11,7 +11,7 @@ $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 += " -fvisibility=hidden " diff --git a/lib/mini_racer/version.rb b/lib/mini_racer/version.rb index 7ad2df87..ce480d02 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.3.0.0" end From 297f79ee523dd7879ea5eea4c81697081857d75a Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 12 Jul 2021 16:59:43 +0200 Subject: [PATCH 2/3] 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. --- ext/mini_racer_extension/extconf.rb | 2 +- lib/mini_racer/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mini_racer_extension/extconf.rb b/ext/mini_racer_extension/extconf.rb index 707b800d..8b9f3033 100644 --- a/ext/mini_racer_extension/extconf.rb +++ b/ext/mini_racer_extension/extconf.rb @@ -13,7 +13,7 @@ $CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or IS_DARWIN $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 ce480d02..419c346e 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 = "~> 16.3.0.0" + LIBV8_NODE_VERSION = "~> 16.4.2.0" end From 9ac5e7aec671b8f1d3671de070cb6cde94a37421 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 18 Oct 2021 12:36:18 +0200 Subject: [PATCH 3/3] Update to use libv8-node 16.10.0 --- lib/mini_racer/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mini_racer/version.rb b/lib/mini_racer/version.rb index 419c346e..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 = "~> 16.4.2.0" + LIBV8_NODE_VERSION = "~> 16.10.0.0" end