8000 oh yeah we need libcmalloc too · github/ruby@d0ac81f · GitHub
[go: up one dir, main page]

Skip to content

Commit d0ac81f

Browse files
author
Charlie Somerville
committed
oh yeah we need libcmalloc too
1 parent e187d1c commit d0ac81f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

script/deploy

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,27 @@ cp version.h version.h.pristine
2020
try autoconf
2121
try ./configure --prefix=/data/ruby --disable-install-doc
2222
try make -j 4
23-
2423
try make install
2524

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+
2633
sleep 1
2734
cp version.h.pristine version.h
2835
perl -pi -e "s/-github/-github-tcmalloc/" version.h
2936
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
3039

3140
sleep 1
3241
cp version.h.pristine version.h
3342
perl -pi -e "s/-github/-github-jemalloc/" version.h
3443
try make ruby-jemalloc RUBY_INSTALL_NAME=ruby-jemalloc MAINLIBS=-ljemalloc
35-
36-
cp ruby-tcmalloc /data/ruby/bin
37-
cp -p ruby-tcmalloc /data/ruby/bin/ruby
3844
cp ruby-jemalloc /data/ruby/bin
3945

4046
export PATH=/data/ruby/bin:$PATH

0 commit comments

Comments
 (0)
0