]> git.ipfire.org Git - thirdparty/curl.git/commit
build: do not apply curl debug macros to `tests/server` by default
authorViktor Szakats <commit@vsz.me>
Wed, 12 Mar 2025 21:41:57 +0000 (22:41 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 14 Mar 2025 11:59:32 +0000 (12:59 +0100)
commita16485a42ea5dabe6c327179a1678ad04d1c6b2f
tree9c4d0f16a30eaa4c7d31537d87360934e0868a53
parent43b28846555248d225311f278133d267dedbc118
build: do not apply curl debug macros to `tests/server` by default

It seems unnecessary and possibly unexpected to build test servers with
debug-enabled features and memory tracking whenever the tested curl is
built like that (which is a requirement for some tests, so curl is
mostly built like that when running tests.) It also makes building
servers a little bit faster with cmake for the most common cases.

You can apply debug options to `tests/server` with these new options:
- `./configure`: `--enable-server-debug`.
- cmake: `-DENABLE_SERVER_DEBUG`.

Also sync the way we pass these macros in autotools, with CMake builds.
Before this patch, autotools passed them via `curl_config.h`. After this
patch it passes them on the command-line, like cmake builds do.

This patch also make these option no longer passed to examples and
`http/client` in cmake builds, where they were no-ops anyway.

Ref: #15000
Closes #16705
14 files changed:
CMakeLists.txt
configure.ac
docs/INSTALL-CMAKE.md
lib/CMakeLists.txt
lib/Makefile.am
m4/curl-confopts.m4
src/CMakeLists.txt
src/Makefile.am
tests/libtest/CMakeLists.txt
tests/libtest/Makefile.am
tests/server/CMakeLists.txt
tests/server/Makefile.am
tests/unit/CMakeLists.txt
tests/unit/Makefile.am