Skip to content

Commit e233cae

Browse files
author
Charlie Somerville
committed
Merge pull request #8 from github/compile-jemalloc-and-tcmalloc-too
Compile and install tcmalloc and jemalloc ruby as well
2 parents 6bbb6ed + d0ac81f commit e233cae

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

script/deploy

+22
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,33 @@ branch_name="$1"
1515
commit="$(git rev-parse --short HEAD)"
1616

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

1920
try autoconf
2021
try ./configure --prefix=/data/ruby --disable-install-doc
2122
try make -j 4
2223
try make install
2324

25+
# wait to touch version.h last modified timestamp (1 sec resolution),
26+
# so make recognizes the change and rebuilds
27+
sleep 1
28+
cp version.h.pristine version.h
29+
perl -pi -e 's/-github/-github-libcmalloc/' version.h
30+
try make ruby-libcmalloc RUBY_INSTALL_NAME=ruby-libcmalloc
31+
cp ruby-libcmalloc /data/ruby/bin
32+
33+
sleep 1
34+
cp version.h.pristine version.h
35+
perl -pi -e "s/-github/-github-tcmalloc/" version.h
36+
try make ruby-tcmalloc RUBY_INSTALL_NAME=ruby-tcmalloc MAINLIBS=-ltcmalloc
37+
cp ruby-tcmalloc /data/ruby/bin
38+
cp -p ruby-tcmalloc /data/ruby/bin/ruby
39+
40+
sleep 1
41+
cp version.h.pristine version.h
42+
perl -pi -e "s/-github/-github-jemalloc/" version.h
43+
try make ruby-jemalloc RUBY_INSTALL_NAME=ruby-jemalloc MAINLIBS=-ljemalloc
44+
cp ruby-jemalloc /data/ruby/bin
45+
2446
export PATH=/data/ruby/bin:$PATH
2547
try gem install vendor/bundler-1.3.5.gem

0 commit comments

Comments
 (0)