Skip to content

Commit

Permalink
Update to use libv8-node 16.x (#210)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lloeki committed Oct 31, 2021
1 parent 6c7abc4 commit 8bd860b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/mini_racer_extension/extconf.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/mini_racer/version.rb
Expand Up @@ -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

0 comments on commit 8bd860b

Please sign in to comment.