Skip to content

Commit dc95424

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

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
@@ -608,17 +608,6 @@ fi
608608

609609
if test "$setup_tcg" = "1"; then
610610
checkout tcg $version_tcg https://github.com/google/tcmalloc
611-
ORIG=""
612-
if test "$darwin" = "1"; then
613-
ORIG="_orig"
614-
fi
615-
sed -i $ORIG '/linkstatic/d' tcmalloc/BUILD
616-
sed -i $ORIG '/linkstatic/d' tcmalloc/internal/BUILD
617-
sed -i $ORIG '/linkstatic/d' tcmalloc/testing/BUILD
618-
sed -i $ORIG '/linkstatic/d' tcmalloc/variants.bzl
619-
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
620-
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)
621-
gawk -i inplace '/alwayslink/ && !f{f=1; next} 1' tcmalloc/BUILD # delete only the first instance of "alwayslink"
622611
bazel build -c opt tcmalloc
623612
popd
624613
fi

0 commit comments

Comments
 (0)