Skip to content

Commit f822a4d

Browse files
authored
Configure tcmalloc only if used
dart-lang/sdk@7b2cfdb
1 parent 1fffea5 commit f822a4d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,14 @@ jobs:
204204
205205
- name: Configure tcmalloc
206206
run: |
207-
apk add --no-cache autoconf automake libtool
208-
cd dart-sdk/sdk/third_party/tcmalloc/gperftools
209-
./autogen.sh
210-
./configure --enable-emergency-malloc --enable-frame-pointers --enable-cpu-profiler --disable-heap-checker --disable-debugalloc --enable-sized-delete --disable-libunwind
211-
cd ../include
212-
find . -type f -print0 | xargs -0 -n 1 -- sh -xc 'cp -f "../gperftools/src/$1" "$1"' --
207+
if test -d dart-sdk/sdk/third_party/tcmalloc/gperftools; then
208+
apk add --no-cache autoconf automake libtool
209+
cd dart-sdk/sdk/third_party/tcmalloc/gperftools
210+
./autogen.sh
211+
./configure --enable-emergency-malloc --enable-frame-pointers --enable-cpu-profiler --disable-heap-checker --disable-debugalloc --enable-sized-delete --disable-libunwind
212+
cd ../include
213+
find . -type f -print0 | xargs -0 -n 1 -- sh -xc 'cp -f "../gperftools/src/$1" "$1"' --
214+
fi
213215
214216
- name: Build
215217
run: |

0 commit comments

Comments
 (0)