Skip to content

Commit 9a1f605

Browse files
committed
Add homebrew's jemalloc path to --with-opt-dir (closes #503).
1 parent d0d088b commit 9a1f605

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

share/ruby-install/ruby/functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ function configure_ruby()
3131
brew)
3232
opt_dir="$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm)"
3333
openssl_dir="$(brew --prefix "openssl@${openssl_version}")"
34+
35+
if [[ "${ruby_dependencies[*]}" == *"jemalloc"* ]]; then
36+
opt_dir="${opt_dir}:$(brew --prefix jemalloc)"
37+
fi
3438
;;
3539
port)
3640
opt_dir="/opt/local"

0 commit comments

Comments
 (0)