curl/.github
Viktor Szakats ea98445680
cmake: ENABLE_DEBUG=ON to always set -DDEBUGBUILD
Before this patch `ENABLE_DEBUG=ON` always enabled the TrackMemory
(aka `ENABLE_CURLDEBUG=ON`) feature, but required the `Debug` CMake
configration to actually enable curl debug features
(aka `-DDEBUGBUILD`).

Curl debug features do not require compiling with C debug options. This
also made enabling debug features unintuitive and complicated to use.
Due to other issues (subject to PR #13694) it also caused an error in
default (and `Release`/`MinSizeRel`/`RelWithDebInfo`) configs, when
building the `testdeps` target:
```
ld: CMakeFiles/unit1395.dir/unit1395.c.o: in function `test':
unit1395.c:(.text+0x1a0): undefined reference to `dedotdotify'
```
Ref: https://github.com/curl/curl/actions/runs/9037287098/job/24835990826#step:3:2483

Fix it by always defining `DEBUGBUILD` when setting `ENABLE_DEBUG=ON`.
Decoupling this option from the selected CMake configuration.

Note that after this patch `ENABLE_DEBUG=ON` unconditionally enables
curl debug features. These features are insecure and unsuited for
production. Make sure to omit this option when building for production
in default, `Release` (and other not-`Debug`) modes.

Also delete a workaround no longer necessary in GHA CI jobs.

Ref: 1a62b6e68c (2015-03-03)
Ref: #13583
Closes #13592
2024-05-27 17:57:52 +02:00
..
ISSUE_TEMPLATE github/ISSUE_TEMPLATE: tweak the commericual support text 2024-04-18 17:00:57 +02:00
scripts pytest: fixes for recent python, add FTP tests 2024-05-17 16:53:17 +02:00
workflows cmake: ENABLE_DEBUG=ON to always set -DDEBUGBUILD 2024-05-27 17:57:52 +02:00
CODEOWNERS CODEOWNERS: remove the peeps mentioned as CI owners 2023-02-02 08:42:29 +01:00
CONTRIBUTING.md copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
dependabot.yml reuse: add copyright + license info to individual docs/*.md files 2024-03-31 12:01:18 +02:00
FUNDING.yml copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
labeler.yml GHA: add MSYS, mingw-w64, Cygwin jobs 2024-05-18 00:30:36 +02:00
lock.yml copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
stale.yml copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00