diff --git a/patch/node/src/node_embedding_api.cc b/patch/node/src/node_embedding_api.cc index 7c0b12e..f246712 100644 --- a/patch/node/src/node_embedding_api.cc +++ b/patch/node/src/node_embedding_api.cc @@ -113,7 +113,11 @@ extern "C" { std::vector exec_args; std::vector errors; int exit_code = node::InitializeNodeWithArgs( - &args, &exec_args, &errors + &args, &exec_args, &errors, + static_cast( + node::ProcessFlags::kDisableCLIOptions | + node::ProcessFlags::kDisableNodeOptionsEnv + ) ); if (exit_code != 0) { diff --git a/scripts/build.py b/scripts/build.py index 91ff868..3f3158b 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -9,7 +9,7 @@ os.chdir('node-{}'.format(config.nodeVersion)) -configureArgvs = [ '--enable-static', '--without-node-options' ] + config.configFlags +configureArgvs = [ '--enable-static' ] + config.configFlags if sys.platform == 'win32': env = os.environ.copy()