This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# This short script queries the icecream scheduler to discover what machines are connected, | |
# and sums the maximum job counts for all x86-64 machines. | |
# It can be used in your mozconfig as follows: | |
# mk_add_options MOZ_MAKE_FLAGS="-j$(icecc-jobs)" | |
# if this script is on your PATH, and named icecc-jobs | |
use List::Util qw(sum0); |