Skip to content

Switch default CMake build mode to RelWithDebInfo#231

Merged
derobins merged 3 commits into
developfrom
derobins/relwithdebinfo
Mar 24, 2026
Merged

Switch default CMake build mode to RelWithDebInfo#231
derobins merged 3 commits into
developfrom
derobins/relwithdebinfo

Conversation

@derobins
Copy link
Copy Markdown
Collaborator

@derobins derobins commented Mar 19, 2026

Changed from Debug

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR changes the project’s default single-config CMake build type from Debug to RelWithDebInfo, and records the behavior change in the changelog.

Changes:

  • Update the default CMAKE_BUILD_TYPE to RelWithDebInfo when no build type is specified (single-config generators).
  • Add a changelog entry documenting the default build-type change.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
CMakeLists.txt Switches the default CMAKE_BUILD_TYPE from Debug to RelWithDebInfo.
CHANGELOG.md Documents the default CMake build-type change under “Changed”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt Outdated
Copilot AI review requested due to automatic review settings March 19, 2026 23:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread util/docker/DOCKERFILE.ais_ci_suse Outdated
Comment thread util/docker/DOCKERFILE.ais_ci_suse
@derobins derobins force-pushed the derobins/relwithdebinfo branch from 7780bf4 to 4c183e9 Compare March 20, 2026 15:55
RelWithDebInfo emits warnings, so go back to Debug while we
wait for fixes. When the fixes are in, the CI will be adapted
to build both Debug and RelWithDebInfo.
Copilot AI review requested due to automatic review settings March 24, 2026 23:02
@derobins derobins force-pushed the derobins/relwithdebinfo branch from 4c183e9 to c5f6f08 Compare March 24, 2026 23:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 72 to 76
/bin/bash -c "
cmake \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_CXX_FLAGS="-Werror" \
-DCMAKE_HIP_PLATFORM=nvidia \
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The bash string passed to /bin/bash -c "..." is double-quoted, but -DCMAKE_CXX_FLAGS="-Werror" introduces an unescaped inner double quote. If this workflow is ever re-enabled, the command will be syntactically broken. Consider switching the outer -c string to single quotes (and avoiding host-side interpolation), or escaping the inner quotes / using single quotes around the -Werror value.

Copilot uses AI. Check for mistakes.
Comment on lines 142 to 146
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER="${_AIS_INPUT_CXX_COMPILER}" \
-DCMAKE_CXX_FLAGS="-Werror" \
-DCMAKE_HIP_ARCHITECTURES="${{ env.AIS_HIP_ARCHITECTURES }}" \
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

This workflow now forces -DCMAKE_BUILD_TYPE=Debug, which means CI no longer exercises the new default build type (RelWithDebInfo). If the intent of this PR is to move builds toward RelWithDebInfo, consider either using RelWithDebInfo here as well, or only using Debug conditionally (e.g., when AIS_USE_CODE_COVERAGE is enabled) so the default behavior stays validated in CI.

Copilot uses AI. Check for mistakes.
@derobins derobins merged commit 518c24c into develop Mar 24, 2026
46 checks passed
@derobins derobins deleted the derobins/relwithdebinfo branch March 24, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants