Skip to content

Commit

Permalink
Add homebrew's jemalloc path to --with-opt-dir (issue #503).
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 6, 2025
1 parent 8c9fd03 commit d023805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/ruby-install/ruby/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ function configure_ruby()
brew)
opt_dir="$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm)"
openssl_dir="$(brew --prefix "openssl@${openssl_version}")"

if [[ "${ruby_dependencies[*]}" == *"jemalloc"* ]]; then
opt_dir="${opt_dir}:$(brew --prefix jemalloc)"
fi
;;
port)
opt_dir="/opt/local"
Expand Down

0 comments on commit d023805

Please sign in to comment.