From ff7622e62fbde76852c427c340ec9feea1a9cec3 Mon Sep 17 00:00:00 2001 From: Ido Ben Harosh Date: Thu, 9 Jun 2016 12:00:02 +0300 Subject: [PATCH] Copying node.lib timestamp to prevent redundant link with msbuild --- lib/build.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/build.js b/lib/build.js index 22f2583694..4ee5f7b275 100644 --- a/lib/build.js +++ b/lib/build.js @@ -200,7 +200,15 @@ function build (gyp, argv, callback) { rs.pipe(ws) rs.on('error', callback) ws.on('error', callback) - rs.on('end', doBuild) + rs.on('end', function(){ + fs.stat(archNodeLibPath, function(err, stat){ + if (err) return callback(err) + fs.utimes(buildNodeLibPath, stat.atime, stat.mtime, function(err){ + if (err) return callback(err) + doBuild(); + }) + }) + }) }) }