Skip to content

Compile and install tcmalloc and jemalloc ruby as well #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions script/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,33 @@ branch_name="$1"
commit="$(git rev-parse --short HEAD)"

perl -pi -e "s/development/$branch_name $commit/" version.h
cp version.h version.h.pristine

try autoconf
try ./configure --prefix=/data/ruby --disable-install-doc
try make -j 4
try make install

# wait to touch version.h last modified timestamp (1 sec resolution),
# so make recognizes the change and rebuilds
sleep 1
cp version.h.pristine version.h
perl -pi -e 's/-github/-github-libcmalloc/' version.h
try make ruby-libcmalloc RUBY_INSTALL_NAME=ruby-libcmalloc
cp ruby-libcmalloc /data/ruby/bin

sleep 1
cp version.h.pristine version.h
perl -pi -e "s/-github/-github-tcmalloc/" version.h
try make ruby-tcmalloc RUBY_INSTALL_NAME=ruby-tcmalloc MAINLIBS=-ltcmalloc
cp ruby-tcmalloc /data/ruby/bin
cp -p ruby-tcmalloc /data/ruby/bin/ruby

sleep 1
cp version.h.pristine version.h
perl -pi -e "s/-github/-github-jemalloc/" version.h
try make ruby-jemalloc RUBY_INSTALL_NAME=ruby-jemalloc MAINLIBS=-ljemalloc
cp ruby-jemalloc /data/ruby/bin

export PATH=/data/ruby/bin:$PATH
try gem install vendor/bundler-1.3.5.gem