Skip to content
Closed
Prev Previous commit
fixup! tools: implement node_mksnapshot
  • Loading branch information
joyeecheung committed Apr 22, 2019
commit 90b5d8d6a6834a8259575b598ea6d23f534b7796
6 changes: 2 additions & 4 deletions tools/snapshot/node_mksnapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "v8.h"

#ifdef _WIN32
#include <VersionHelpers.h>
#include <WinError.h>
#include <windows.h>

int wmain(int argc, wchar_t* argv[]) {
Expand All @@ -33,8 +31,8 @@ int main(int argc, char* argv[]) {
}

int node_argc = 1;
char argv0[5] = "node";
char* node_argv[] = {argv0};
char argv0[] = "node";
char* node_argv[] = {argv0, nullptr};

node::InitializationResult result =
node::InitializeOncePerProcess(node_argc, node_argv);
Comment thread
joyeecheung marked this conversation as resolved.
Expand Down
3 changes: 1 addition & 2 deletions tools/snapshot/snapshot_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ std::string FormatBlob(v8::StartupData* blob,
const std::vector<size_t>& isolate_data_indexes) {
std::stringstream ss;

ss << R"(#include <cinttypes>
#include <array>
ss << R"(#include <cstddef>
#include "node_main_instance.h"
#include "v8.h"

Expand Down