diff mbox series

[1/3] configure: add missing CONFIG_TCMALLOC

Message ID 20200914095231.621068-2-stefanha@redhat.com
State New
Headers show
Series configure: add missing CONFIG_FOO variables | expand

Commit Message

Stefan Hajnoczi Sept. 14, 2020, 9:52 a.m. UTC
The feature summary in meson.build checks for CONFIG_TCMALLOC:

  summary_info += {'tcmalloc support':  config_host.has_key('CONFIG_TCMALLOC')}

Nothing emits CONFIG_TCMALLOC in ./configure so this feature appears
disabled even if it has been enabled.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 configure | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/configure b/configure
index 2b6a1196da..9f5b3a8897 100755
--- a/configure
+++ b/configure
@@ -7027,6 +7027,10 @@  if test "$malloc_trim" = "yes" ; then
   echo "CONFIG_MALLOC_TRIM=y" >> $config_host_mak
 fi
 
+if test "$tcmalloc" = "yes" ; then
+  echo "CONFIG_TCMALLOC=y" >> $config_host_mak
+fi
+
 if test "$avx2_opt" = "yes" ; then
   echo "CONFIG_AVX2_OPT=y" >> $config_host_mak
 fi