diff --git a/bin/install-dev-tooling b/bin/install-dev-tooling index 68d49f69..984ff676 100755 --- a/bin/install-dev-tooling +++ b/bin/install-dev-tooling @@ -42,4 +42,15 @@ run "mv ~/.psqlrc ~/.psqlrc.${timestamp}" run.set-next show-output-on run "cp -p -v development/config/.psqlrc* ${HOME}" - +h1 "Installing Ruby" +run "brew update && brew install rbenv ruby-build" +run "brew install jemalloc rust" +h2 "Building Ruby... with Jemalloc & YJIT" + +set -e + +unset CFLAGS +export RUBY_CFLAGS="-Wno-error=implicit-function-declaration" +export RUBY_CONFIGURE_OPTS="--enable-yjit --with-jemalloc" +rbenv install $(cat .ruby-version | tr -d '\n') +bundle install -j 4