Skip to content

Commit

Permalink
fix: serial bb builds for mac (#5462)
Browse files Browse the repository at this point in the history
/proc/meminfo does not exist on mac.
  • Loading branch information
just-mitch authored Mar 26, 2024
1 parent 1829741 commit 4317819
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions barretenberg/cpp/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,17 @@ b="\033[34m" # Blue
p="\033[35m" # Purple
r="\033[0m" # Reset


AVAILABLE_MEMORY=$(awk '/MemFree/ { printf $2 }' /proc/meminfo)
AVAILABLE_MEMORY=0

case "$(uname)" in
Linux*)
# Check available memory on Linux
AVAILABLE_MEMORY=$(awk '/MemFree/ { printf $2 }' /proc/meminfo)
;;
*)
echo "Parallel builds not supported on this operating system"
;;
esac
# This value may be too low.
# If builds fail with an amount of free memory greater than this value then it should be increased.
MIN_PARALLEL_BUILD_MEMORY=32000000
Expand Down

0 comments on commit 4317819

Please sign in to comment.