From d4b38144c02f3faa5271e5fb35df93507e06f1b4 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 12 Oct 2021 22:55:51 +1100 Subject: [PATCH] Add tcmalloc test target. --- .github/configs | 3 +++ .github/setup_ci.sh | 5 ++++- .github/workflows/c-cpp.yml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/configs b/.github/configs index d87a159ed..0a1480d5e 100755 --- a/.github/configs +++ b/.github/configs @@ -40,6 +40,9 @@ case "$config" in hardenedmalloc) CONFIGFLAGS="--with-ldflags=-lhardened_malloc" ;; + tcmalloc) + CONFIGFLAGS="--with-ldflags=-ltcmalloc" + ;; kerberos5) CONFIGFLAGS="--with-kerberos5" ;; diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh index df4bd97f1..c80bd38d4 100755 --- a/.github/setup_ci.sh +++ b/.github/setup_ci.sh @@ -50,7 +50,10 @@ for TARGET in $TARGETS; do ;; hardenedmalloc) INSTALL_HARDENED_MALLOC=yes - ;; + ;; + tcmalloc) + PACKAGES="$PACKAGES libgoogle-perftools-dev" + ;; openssl-noec) INSTALL_OPENSSL=OpenSSL_1_1_1k SSLCONFOPTS="no-ec" diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 3ea466a7a..530922f80 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -37,6 +37,7 @@ jobs: - { os: ubuntu-20.04, configs: pam } - { os: ubuntu-20.04, configs: kitchensink } - { os: ubuntu-20.04, configs: hardenedmalloc } + - { os: ubuntu-20.04, configs: tcmalloc } - { os: ubuntu-latest, configs: libressl-master } - { os: ubuntu-latest, configs: libressl-2.2.9 } - { os: ubuntu-latest, configs: libressl-2.8.3 }