diff --git a/lib/configure.js b/lib/configure.js index 998635e7cd..5331762383 100644 --- a/lib/configure.js +++ b/lib/configure.js @@ -39,10 +39,13 @@ function configure (gyp, argv, callback) { , gyp_addon = path.join(devDir, 'tools', 'gyp_addon') if (win) { - // add a <= version check when joyent/node#2685 gets merged - argv.push('-Dnode_root_dir=' + devDir) - argv.push('-I') - argv.push(path.join(devDir, 'tools', 'patch.gypi')) + if (version < 0.8) { + // if < 0.8, we need to manually apply the patch at joyent/node#2685, + // since it got merged somewhere in 0.7.x. + argv.push('-Dnode_root_dir=' + devDir) + argv.push('-I') + argv.push(path.join(devDir, 'tools', 'patch.gypi')) + } } else { // Force the 'make' target for non-Windows argv.unshift('.gyp')