[master] f01918f5c build: s/GCOVING/ENABLE_COVERAGE/
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Aug 25 10:21:05 UTC 2021
commit f01918f5c88cac27f3ac77a8e9cba1b0eb0101a0
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Aug 24 17:57:29 2021 +0200
build: s/GCOVING/ENABLE_COVERAGE/
diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index e3ed61639..4d436cd11 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -514,7 +514,7 @@ void VCL_TaskLeave(VRT_CTX, struct vrt_privs *);
void VMOD_Init(void);
void VMOD_Panic(struct vsb *);
-#if defined(GCOVING) || defined(__SANITIZER)
+#if defined(ENABLE_COVERAGE) || defined(__SANITIZER)
# define DONT_DLCLOSE_VMODS
#endif
diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index cdeaa3d18..af70b1b09 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -688,7 +688,7 @@ MCF_InitParams(struct cli *cli)
low = sysconf(_SC_THREAD_STACK_MIN);
MCF_ParamConf(MCF_MINIMUM, "thread_pool_stack", "%jdb", (intmax_t)low);
-#if defined(__SANITIZER) || __has_feature(address_sanitizer) || defined(GCOVING)
+#if defined(__SANITIZER) || __has_feature(address_sanitizer) || defined(ENABLE_COVERAGE)
def = 192 * 1024;
#endif
diff --git a/configure.ac b/configure.ac
index 2d2e0416a..ab32052f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -784,7 +784,7 @@ AC_ARG_ENABLE(debugging-symbols,
[enable_debugging_symbols=no])
if test "$enable_coverage" != no; then
- AC_DEFINE([GCOVING], [1], [Define to 1 if code coverage is enabled.])
+ AC_DEFINE([ENABLE_COVERAGE], [1], [Define to 1 if code coverage is enabled.])
save_CFLAGS=$CFLAGS
CFLAGS=
AX_CHECK_COMPILE_FLAG([--coverage],
More information about the varnish-commit
mailing list