Skip to content

Commit

Permalink
Add support for a --modules flag in build.js
Browse files Browse the repository at this point in the history
  • Loading branch information
laverdet committed Apr 21, 2020
1 parent 7de7f30 commit aca5e18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ var cp = require('child_process'),
var force = false, debug = false;
var
arch = process.arch,
platform = process.platform;
platform = process.platform,
modules = process.versions.modules;
var args = process.argv.slice(2).filter(function(arg) {
if (arg === '-f') {
force = true;
return false;
} else if (arg.substring(0, 13) === '--target_arch') {
arch = arg.substring(14);
} else if (arg.substring(0, 10) === '--modules=') {
modules = arg.substring(10);
return false;
} else if (arg === '--debug') {
debug = true;
}
Expand Down

0 comments on commit aca5e18

Please sign in to comment.