From f822a4dde1e516e0af2e4cd225ee4ebbc1014383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Wed, 19 Apr 2023 08:40:52 -0700 Subject: [PATCH] Configure tcmalloc only if used https://github.com/dart-lang/sdk/commit/7b2cfdbc8cd74cda8096acdcee4a8e112cf0c3b8 --- .github/workflows/build.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9c4f8f..91351a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: |