diff options
Diffstat (limited to 'node_modules/node-gyp/lib/build.js')
-rw-r--r-- | node_modules/node-gyp/lib/build.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/node_modules/node-gyp/lib/build.js b/node_modules/node-gyp/lib/build.js index bf2716984..e1e8c36f5 100644 --- a/node_modules/node-gyp/lib/build.js +++ b/node_modules/node-gyp/lib/build.js @@ -269,55 +269,7 @@ function build (gyp, argv, callback) { if (signal) { return callback(new Error('`' + command + '` got signal: ' + signal)) } - //symlinkNodeBinding() callback() } - function symlinkNodeBinding () { - var source, target - var buildDir = 'build/' + buildType + '/*.node' - log.verbose('globbing for files', buildDir) - glob(buildDir, function (err, nodeFiles) { - if (err) return callback(err) - log.silly('symlink', 'linking files', nodeFiles) - function link () { - var file = nodeFiles.shift() - if (!file) { - // no more files to link... done! - return callback() - } - if (win) { - // windows requires absolute paths for junctions - source = path.resolve('build', path.basename(file)) - target = path.resolve(file) - } else { - // on unix, use only relative paths since they're nice - source = path.join('build', path.basename(file)) - target = path.relative('build', file) - } - log.info('symlink', 'creating %s "%s" pointing to "%s"', win ? 'junction' : 'symlink', source, target) - fs.symlink(target, source, 'junction', function (err) { - if (err) { - if (err.code === 'EEXIST') { - log.verbose('destination already exists; deleting', dest) - rm(dest, function (err) { - if (err) return callback(err) - log.verbose('delete successful; trying symlink again') - nodeFiles.unshift(file) - link() - }) - } else { - callback(err) - } - return - } - // process the next file, if any - link() - }) - } - // start linking - link() - }) - } - } |