From 82d7bb18aa3079cdfcf4c4197b2142265812c0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20M=C3=B6sner?= Date: Thu, 26 Oct 2023 15:00:30 +0200 Subject: [PATCH] Hotfix: spaces in path --- lib/configure.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/configure.js b/lib/configure.js index 563af2c185..f855bc8bd5 100644 --- a/lib/configure.js +++ b/lib/configure.js @@ -313,18 +313,18 @@ function configure (gyp, argv, callback) { !gyp.opts.nodedir ? '<(target_arch)' : '$(Configuration)', release.name + '.lib') - argv.push('-I', '"' + addon_gypi + '"') - argv.push('-I', '"' + common_gypi + '"') + argv.push('-I', addon_gypi) + argv.push('-I', common_gypi) argv.push('-Dlibrary=shared_library') argv.push('-Dvisibility=default') argv.push('-Dnode_root_dir="' + nodeDir + '"') if (process.platform === 'aix') { - argv.push('-Dnode_exp_file=' + node_exp_file) + argv.push('-Dnode_exp_file="' + node_exp_file + '"') } argv.push('-Dnode_gyp_dir="' + nodeGypDir + '"') argv.push('-Dnode_lib_file="' + nodeLibFile + '"') argv.push('-Dnw_lib_file="' + nwLibFile + '"') - argv.push('-Dmodule_root_dir=' + process.cwd()) + argv.push('-Dmodule_root_dir="' + process.cwd() + '"') argv.push('-Dnode_engine=' + (gyp.opts.node_engine || process.jsEngine || 'v8')) argv.push('--depth=.') @@ -346,7 +346,7 @@ function configure (gyp, argv, callback) { argv.unshift('binding.gyp') // execute `gyp` from the current target nodedir - argv.unshift('"' + gyp_script + '"') + argv.unshift(gyp_script) // make sure python uses files that came with this particular node package var pypath = [path.join(__dirname, '..', 'gyp', 'pylib')] @@ -355,7 +355,7 @@ function configure (gyp, argv, callback) { } process.env.PYTHONPATH = pypath.join(win ? ';' : ':') - var cp = gyp.spawn(python, argv, {windowsVerbatimArguments: true}) + var cp = gyp.spawn(python, argv) cp.on('exit', onCpExit) }) }