diff --git a/common.gypi b/common.gypi index 0dcf428002c4c7..9b37dc9ff581a3 100644 --- a/common.gypi +++ b/common.gypi @@ -36,7 +36,7 @@ # Reset this number to 0 on major V8 upgrades. # Increment by one for each non-official patch applied to deps/v8. - 'v8_embedder_string': '-node.3', + 'v8_embedder_string': '-node.4', ##### V8 defaults for Node.js ##### diff --git a/deps/v8/src/deoptimizer/translation-array.cc b/deps/v8/src/deoptimizer/translation-array.cc index 72f1004ddb65c7..fe06e9a5d4ae59 100644 --- a/deps/v8/src/deoptimizer/translation-array.cc +++ b/deps/v8/src/deoptimizer/translation-array.cc @@ -9,7 +9,7 @@ #include "src/objects/fixed-array-inl.h" #ifdef V8_USE_ZLIB -#include "third_party/zlib/google/compression_utils_portable.h" +#include "compression_utils_portable.h" #endif // V8_USE_ZLIB namespace v8 { diff --git a/deps/v8/src/snapshot/snapshot-utils.cc b/deps/v8/src/snapshot/snapshot-utils.cc index 834d003575764f..545993c80c5e0f 100644 --- a/deps/v8/src/snapshot/snapshot-utils.cc +++ b/deps/v8/src/snapshot/snapshot-utils.cc @@ -7,7 +7,7 @@ #include "src/base/sanitizer/msan.h" #ifdef V8_USE_ZLIB -#include "third_party/zlib/zlib.h" +#include "zlib.h" #endif namespace v8 { diff --git a/deps/zlib/zlib.gyp b/deps/zlib/zlib.gyp index 49de2a6c6de903..521e25ca5b5c7f 100644 --- a/deps/zlib/zlib.gyp +++ b/deps/zlib/zlib.gyp @@ -5,12 +5,20 @@ { 'variables': { 'ZLIB_ROOT': '.', - 'use_system_zlib%': 0, 'arm_fpu%': '', 'llvm_version%': '0.0', }, + 'targets': [ + { + 'target_name': 'zlib_google', + 'type': 'static_library', + 'sources': [ + '