From b5490d02d41af17baf4cf25a82aac110cba40ecb Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 4 Oct 2020 02:04:49 +0200 Subject: [PATCH] tools: add missing uv_setup_argv() calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/pull/34751 PR-URL: https://github.com/nodejs/node/pull/35491 Reviewed-By: James M Snell Reviewed-By: Joyee Cheung Reviewed-By: Richard Lau Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig --- tools/code_cache/mkcodecache.cc | 1 + tools/snapshot/node_mksnapshot.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/code_cache/mkcodecache.cc b/tools/code_cache/mkcodecache.cc index c314e07fd78b22..3a1d0ee50e5078 100644 --- a/tools/code_cache/mkcodecache.cc +++ b/tools/code_cache/mkcodecache.cc @@ -24,6 +24,7 @@ using v8::Local; int wmain(int argc, wchar_t* argv[]) { #else // UNIX int main(int argc, char* argv[]) { + argv = uv_setup_args(argc, argv); #endif // _WIN32 v8::V8::SetFlagsFromString("--random_seed=42"); diff --git a/tools/snapshot/node_mksnapshot.cc b/tools/snapshot/node_mksnapshot.cc index 0ea21990081fea..c5bfcd8fc5c28a 100644 --- a/tools/snapshot/node_mksnapshot.cc +++ b/tools/snapshot/node_mksnapshot.cc @@ -17,6 +17,7 @@ int wmain(int argc, wchar_t* argv[]) { #else // UNIX int main(int argc, char* argv[]) { + argv = uv_setup_args(argc, argv); #endif // _WIN32 v8::V8::SetFlagsFromString("--random_seed=42");