Skip to content

Commit

Permalink
Install jemalloc and configure Ruby w/ it
Browse files Browse the repository at this point in the history
  • Loading branch information
dskecse committed Dec 15, 2024
1 parent 1915754 commit f1df529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mac
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ tap "homebrew/services"
brew "git"
# system dependencies for Ruby builds
brew "openssl"
brew "jemalloc"
brew "rcm"
brew "reattach-to-user-namespace" # for copy-paste and RubyMotion compatibility with tmux
brew "the_silver_searcher"
Expand Down Expand Up @@ -128,7 +129,7 @@ if [ ! -d "$HOME/.rubies" ]; then

ruby_version="$(find_latest_ruby)"
if ! chruby | grep -Fq "$ruby_version"; then
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$HOMEBREW_PREFIX/opt/openssl" \
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$HOMEBREW_PREFIX/opt/openssl --with-jemalloc" \
ruby-build "$ruby_version" "$HOME/.rubies/ruby-$ruby_version"
fi

Expand Down

0 comments on commit f1df529

Please sign in to comment.