Skip to content

autotools: add --enable-debug-info option, use in CI - #22533

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:am-debugsymb
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:am-debugsymb

Conversation

@vszakats

@vszakats vszakats commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

To allow enabling debug info/symbols without the curl development debug
features.

@vszakats vszakats added the build label Aug 10, 2026
@github-actions github-actions Bot added the CI Continuous Integration label Aug 10, 2026
@vszakats
vszakats requested a balanced review from Copilot August 10, 2026 16:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/linux.yml Resolved
Comment thread m4/curl-confopts.m4 Resolved
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This build already uses --enable-debug. Doesn't that also set the -g in CFLAGS?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! I put deleting -g to my tidy-up branch, and merge later.

@jay

jay commented Aug 10, 2026

Copy link
Copy Markdown
Member

I think this option is unnecessary. Developers already know they can use CFLAGS to set their debug options, this is a well known thing.

@vszakats

Copy link
Copy Markdown
Member Author

I give up.

@vszakats vszakats closed this Aug 10, 2026
@vszakats
vszakats deleted the am-debugsymb branch August 10, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration

Development

Successfully merging this pull request may close these issues.

4 participants