Skip to content

autotools: use CURLDEBUG to exclude TrackMemory code from unity #16723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Mar 14, 2025

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


@vszakats vszakats added the build label Mar 14, 2025
@vszakats vszakats changed the title lib, src: use CURLDEBUG (not DEBUGBUILD) to exclude memdebug code from unity lib, src: use CURLDEBUG to exclude memdebug code from unity Mar 14, 2025
@vszakats vszakats changed the title lib, src: use CURLDEBUG to exclude memdebug code from unity lib, src: use CURLDEBUG to exclude TrackMemory code from unity Mar 14, 2025
@vszakats vszakats changed the title lib, src: use CURLDEBUG to exclude TrackMemory code from unity autotools: use CURLDEBUG to exclude TrackMemory code from unity Mar 14, 2025
@vszakats vszakats mentioned this pull request Mar 14, 2025
17 tasks
To sync with cmake.

This should fix `--disable-debug --enable-curldebug --enable-unity`
builds. (not tested in CI)
@vszakats vszakats force-pushed the am-multibyte-memdebug-unity branch from 8bb5bce to b3f32f3 Compare March 14, 2025 12:01
@vszakats vszakats removed the tests label Mar 14, 2025
@vszakats vszakats closed this in d36f164 Mar 14, 2025
@vszakats vszakats deleted the am-multibyte-memdebug-unity branch March 14, 2025 12:28
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
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: curl#16705
Closes curl#16723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant