Skip to content

Commit

Permalink
process.platform will never be kfreebsd
Browse files Browse the repository at this point in the history
This platform value came from debian package, and now the value
from debian package is simply "freebsd", so this check is useless.

PR-URL: #738
Reviewed-By: rvagg
Reviewed-By: bnoordhuis
Reviewed-By: jbergstroem
  • Loading branch information
kapouer authored and rvagg committed Sep 23, 2015
1 parent d6b0385 commit 101bed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.usage = 'Invokes `' + (win ? 'msbuild' : 'make') + '` and builds the mod
function build (gyp, argv, callback) {
var release = processRelease(argv, gyp, process.version, process.release)
, makeCommand = gyp.opts.make || process.env.MAKE
|| (process.platform.indexOf('bsd') != -1 && process.platform.indexOf('kfreebsd') == -1 ? 'gmake' : 'make')
|| (process.platform.indexOf('bsd') != -1 ? 'gmake' : 'make')
, command = win ? 'msbuild' : makeCommand
, buildDir = path.resolve('build')
, configPath = path.resolve(buildDir, 'config.gypi')
Expand Down

0 comments on commit 101bed6

Please sign in to comment.