Skip to content

Commit ac42159

Browse files
derSteFfiderSteFfi
andauthored
tcg: update version to HEAD as of 2025-07-18 (#234)
Fixes #211 and makes tcg compile for the first time on my machine Co-authored-by: Stephan Bauroth <s.bauroth@tu-berlin.de>
1 parent 9e86994 commit ac42159

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

build-bench-env.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ readonly version_sm=master # ~unmaintained since 2017
6262
readonly version_sn=0.7.1
6363
readonly version_tbb=v2021.9.0
6464
readonly version_tc=gperftools-2.16.90
65-
readonly version_tcg=8febb4b4da2ab3b04862a8676fb5b506ef90aa42 # 2024-07-30
65+
readonly version_tcg=98fd24303c7b5ef5e30da625f11fb623a5e038b6 # 2025-07-18
6666
readonly version_yal=main
6767

6868
# benchmark versions
@@ -602,17 +602,6 @@ fi
602602

603603
if test "$setup_tcg" = "1"; then
604604
checkout tcg $version_tcg https://github.com/google/tcmalloc
605-
ORIG=""
606-
if test "$darwin" = "1"; then
607-
ORIG="_orig"
608-
fi
609-
sed -i $ORIG '/linkstatic/d' tcmalloc/BUILD
610-
sed -i $ORIG '/linkstatic/d' tcmalloc/internal/BUILD
611-
sed -i $ORIG '/linkstatic/d' tcmalloc/testing/BUILD
612-
sed -i $ORIG '/linkstatic/d' tcmalloc/variants.bzl
613-
gawk -i inplace '(f && g) {$0="linkshared = True, )"; f=0; g=0} /This library provides tcmalloc always/{f=1} /alwayslink/{g=1} 1' tcmalloc/BUILD
614-
gawk -i inplace 'f{$0="cc_binary("; f=0} /This library provides tcmalloc always/{f=1} 1' tcmalloc/BUILD # Change the line after "This library…" to cc_binary (instead of cc_library)
615-
gawk -i inplace '/alwayslink/ && !f{f=1; next} 1' tcmalloc/BUILD # delete only the first instance of "alwayslink"
616605
bazel build -c opt tcmalloc
617606
popd
618607
fi

0 commit comments

Comments
 (0)