diff options
Diffstat (limited to 'lib/compile-handler.js')
-rw-r--r-- | lib/compile-handler.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/compile-handler.js b/lib/compile-handler.js index 1cbde43f4..f2f567b0c 100644 --- a/lib/compile-handler.js +++ b/lib/compile-handler.js @@ -80,10 +80,11 @@ function CompileHandler(gccProps, compilerProps) { logger.debug(compiler.id + " is unchanged"); return cached; } - return this.factories[type](compiler, this.compilerEnv).then(function (compiler) { - compiler.mtime = res.mtime; - return compiler; - }); + return this.factories[type](compiler, this.compilerEnv) + .then(function (compiler) { + if (compiler) compiler.mtime = res.mtime; + return compiler; + }); }, this)) .catch(function (err) { logger.warn("Unable to stat compiler binary", err); |