Increase the maximum number of inodes
We got three build that failed due to too many open files on Darwin,
increase the limit (see bazelbuild/bazel#2422)
Change-Id: I736db4ea0416dcb32a36828a03927d77a74d776e
diff --git a/mac/setup_mac.sh b/mac/setup_mac.sh
index 32bdb04..ae90da0 100644
--- a/mac/setup_mac.sh
+++ b/mac/setup_mac.sh
@@ -48,6 +48,9 @@
# Set the machine to never sleep
sudo systemsetup -setcomputersleep Never
+# Set the max number of files, see https://github.com/bazelbuild/bazel/issues/2422
+sudo sysctl -w kern.maxfiles=16384
+
# Url to fetch other scripts
# We use script from HEAD, ideally we would use the same commit hash
# than this script but it is not really easy and we generally do not