Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an Autotools option for generating debug symbols independently of curl’s development debug features and adopts it in sanitizer CI builds.
Changes:
- Adds
--enable-debug-info. - Applies compiler debug flags when requested.
- Updates sanitizer configurations to avoid manual
-g.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
m4/curl-confopts.m4 |
Defines the new configuration option. |
m4/curl-compilers.m4 |
Enables compiler debug flags. |
configure.ac |
Initializes the option. |
.github/workflows/linux.yml |
Uses debug-symbol configuration in CI. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
To enable debug info/symbols without the curl development debug options. Also: - GHA/linux: use in CI. - sync `--enable-debug` configure text with help description. - say `--disable-debug` is the default in help description.
| LDFLAGS: -fsanitize=memory | ||
| LIBS: -ldl | ||
| configure: --without-ssl --without-zlib --without-brotli --without-zstd --without-libpsl --without-nghttp2 --enable-debug | ||
| configure: --enable-debug-info --without-ssl --without-zlib --without-brotli --without-zstd --without-libpsl --without-nghttp2 --enable-debug |
There was a problem hiding this comment.
This build already uses --enable-debug. Doesn't that also set the -g in CFLAGS?
There was a problem hiding this comment.
Indeed! I put deleting -g to my tidy-up branch, and merge later.
|
I think this option is unnecessary. Developers already know they can use CFLAGS to set their debug options, this is a well known thing. |
|
I give up. |
To allow enabling debug info/symbols without the curl development debug
features.