tools: use per-process native Debug() printer in mkcodecache

PR-URL: https://github.com/nodejs/node/pull/31884
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Joyee Cheung authored and Myles Borins committed 2020-03-10 18:00:31 -04:00
1 parent 6aa797b546
commit bb41383bdc
4 files changed
+34 -15

No files matched your search

+3
View File
@@ -6,6 +6,7 @@
#include <vector>
#include "cache_builder.h"
#include "debug_utils-inl.h"
#include "libplatform/libplatform.h"
#include "v8.h"
@@ -40,6 +41,8 @@ int main(int argc, char* argv[]) {
return 1;
}
node::per_process::enabled_debug_list.Parse(nullptr);
std::unique_ptr<v8::Platform> platform = v8::platform::NewDefaultPlatform();
v8::V8::InitializePlatform(platform.get());
v8::V8::Initialize();