]> git.ipfire.org Git - thirdparty/curl.git/commit
autotools: use `CURLDEBUG` to exclude TrackMemory code from unity
authorViktor Szakats <commit@vsz.me>
Fri, 14 Mar 2025 02:37:37 +0000 (03:37 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 14 Mar 2025 12:27:46 +0000 (13:27 +0100)
commitd36f164e612cb4f2395851af7b7b71e7fee0393b
tree3f8123a3142142e3303fa4f51f1baa27be60692b
parenta16485a42ea5dabe6c327179a1678ad04d1c6b2f
autotools: use `CURLDEBUG` to exclude TrackMemory code from unity

Before this patch, autotools builds excluded TrackMemory sources
(`lib/memdebug.c` and `lib/curl_multibyte.c`) based on the `DEBUGBUILD`
setting. This works in most cases because its value is the same as
`CURLDEBUG` by default, but the correct condition is `CURLDEBUG`.

It should fix `--disable-debug --enable-curldebug --enable-unity`
builds. (not tested in CI)

It also syncs behavior with cmake builds.

Ref: #16705
Closes #16723
lib/Makefile.am
src/Makefile.am