Currently building mqlrun (an enterprise module) builds MozJS by default. mqlrun doesn't use the javascript engine, so building MozJS is unnecessary for this module.
The follow scons command will end up building MozJS:
python3 buildscripts/scons.py -Q --cache=nolinked --link-model=static --implicit-cache --opt=off --disable-warnings-as-errors install-mh
While the following doesn't enforce a MozJS build, but still produces a fully functional msqlrun:
python3 buildscripts/scons.py -Q --cache=nolinked --link-model=static --implicit-cache --opt=off --disable-warnings-as-errors --js-engine=none install-mh
Faster builds are always nice.