-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obuild: update node.gyp to reference gypfiles/v8.gyp #37
Conversation
Major V8 updates are usually API/ABI incompatible with previous versions. This commit adapts NODE_MODULE_VERSION for V8 6.6. Refs: https://github.com/nodejs/CTC/blob/master/meetings/2016-09-28.md
It is necessary to enable more C++ features in order to build V8 6.4.
This commit renames V8DBG_CLASS_MAP__INSTANCE_ATTRIBUTES__INT to V8DBG_CLASS_MAP__INSTANCE_TYPE__UINT16_T following upstream changes.
This commit updates the following postmortem metadata constants: - v8dbg_class_Map__inobject_properties_or_constructor_function_index__int - This is now v8dbg_class_Map__inobject_properties_start_or_constructor_function_index__char as of v8/v8@61bf2cc - v8dbg_class_Map__instance_attributes__int - This is now v8dbg_class_Map__instance_type__uint16_t as of v8/v8@c00bb6d and v8/v8@cb46310 - v8dbg_class_Map__instance_size__int - This is now v8dbg_class_Map__instance_size_in_words__char as of v8/v8@61bf2cc Refs: nodejs#34 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
This commit updates the following postmortem metadata constant: - v8dbg_bit_field3_dictionary_map_shift - This is now v8dbg_bit_field3_is_dictionary_map_shift as of v8/v8@7a159da Refs: nodejs#34 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
LGTM. Also note that I already fixed |
@joyeecheung thanks, I was working on it yesterday but couldn't finish. I am unable to compile though, here is the error I get (with V8 lkgr):
|
diff --git a/Makefile b/Makefile
index f2ceb6e029..462fd283c9 100644
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,7 @@ $(NODE_G_EXE): config.gypi out/Makefile
out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp \
deps/zlib/zlib.gyp deps/v8/gypfiles/toolchain.gypi \
- deps/v8/gypfiles/features.gypi deps/v8/src/v8.gyp node.gyp \
+ deps/v8/gypfiles/features.gypi deps/v8/gypfiles/v8.gyp node.gyp \
config.gypi
$(PYTHON) tools/gyp_node.py -f make
diff --git a/node.gypi b/node.gypi
index bc9db9b814..f1029f2571 100644
--- a/node.gypi
+++ b/node.gypi
@@ -86,7 +86,7 @@
target_arch=="ia32" or target_arch=="x32")', {
'defines': [ 'NODE_ENABLE_VTUNE_PROFILING' ],
'dependencies': [
- 'deps/v8/src/third_party/vtune/v8vtune.gyp:v8_vtune'
+ 'deps/v8/gypfiles/v8vtune.gyp:v8_vtune'
],
}],
[ 'node_no_browser_globals=="true"', { @joyeecheung I'm adding this diff to your commit and trying to run CI |
Error on CI: |
I think you also need to change the paths in diff --git a/common.gypi b/common.gypi
index cdc11bd909..3a328129d2 100644
--- a/common.gypi
+++ b/common.gypi
@@ -45,14 +45,14 @@
'conditions': [
['GENERATOR=="ninja"', {
'OBJ_DIR': '<(PRODUCT_DIR)/obj',
- 'V8_BASE': '<(PRODUCT_DIR)/obj/deps/v8/src/libv8_base.a',
+ 'V8_BASE': '<(PRODUCT_DIR)/obj/deps/v8/gypfiles/libv8_base.a',
}, {
'OBJ_DIR%': '<(PRODUCT_DIR)/obj.target',
'conditions': [
[ 'build_v8_with_gn=="true"', {
'V8_BASE': '<(PRODUCT_DIR)/obj.target/v8_monolith/geni/gn/obj/libv8_monolith.a',
}, {
- 'V8_BASE': '<(PRODUCT_DIR)/obj.target/deps/v8/src/libv8_base.a',
+ 'V8_BASE': '<(PRODUCT_DIR)/obj.target/deps/v8/gypfiles/libv8_base.a',
}],
],
}], |
Err... that patch doesn't apply on your branch since it's for our vee-eight-lkgr. |
@hashseed thanks! new try: https://ci.nodejs.org/job/node-test-commit-node-v8/287/ |
This is resolved! |
Refs: v8/v8@f9934aa
Fixes: #36
Also noticed that
parallel/test-inspector-esm
currently fails because the scope chain and the format of the responses from the inspector have changed.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)