Skip to content

Commit

Permalink
Configure tcmalloc only if used
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Apr 19, 2023
1 parent 1fffea5 commit f822a4d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,14 @@ jobs:
- name: Configure tcmalloc
run: |
apk add --no-cache autoconf automake libtool
cd dart-sdk/sdk/third_party/tcmalloc/gperftools
./autogen.sh
./configure --enable-emergency-malloc --enable-frame-pointers --enable-cpu-profiler --disable-heap-checker --disable-debugalloc --enable-sized-delete --disable-libunwind
cd ../include
find . -type f -print0 | xargs -0 -n 1 -- sh -xc 'cp -f "../gperftools/src/$1" "$1"' --
if test -d dart-sdk/sdk/third_party/tcmalloc/gperftools; then
apk add --no-cache autoconf automake libtool
cd dart-sdk/sdk/third_party/tcmalloc/gperftools
./autogen.sh
./configure --enable-emergency-malloc --enable-frame-pointers --enable-cpu-profiler --disable-heap-checker --disable-debugalloc --enable-sized-delete --disable-libunwind
cd ../include
find . -type f -print0 | xargs -0 -n 1 -- sh -xc 'cp -f "../gperftools/src/$1" "$1"' --
fi
- name: Build
run: |
Expand Down

0 comments on commit f822a4d

Please sign in to comment.