// Command-line arguments passed to npm when rebuilding binary packages.
var args = [
  "rebuild",

  // The --no-bin-links flag tells npm not to create symlinks in the
  // node_modules/.bin/ directory when rebuilding packages, which helps
  // avoid problems like https://github.com/meteor/meteor/issues/7401.
  "--no-bin-links",

  // The --update-binary flag tells node-pre-gyp to replace previously
  // installed local binaries with remote binaries:
  // https://github.com/mapbox/node-pre-gyp#options
  "--update-binary"
];

exports.get = function () {
  // Make a defensive copy.
  return args.slice(0);
};

@@ -525,16 +525,226 @@
 ry%22%0A%5D;%0A%0A
+// Allow additional flags to be passed via the $METEOR_NPM_REBUILD_FLAGS%0A// environment variable.%0Avar flags = process.env.METEOR_NPM_REBUILD_FLAGS;%0Aif (flags) %7B%0A  args.push.apply(args, flags.split(/%5Cs+/g));%0A%7D%0A%0A
 exports.

Support additional `meteor rebuild` flags via environment variable.