Skip to content

build.sh debug build fixes#338

Merged
swahtz merged 2 commits into
openvdb:mainfrom
swahtz:debug_build_fixes
Nov 18, 2025
Merged

build.sh debug build fixes#338
swahtz merged 2 commits into
openvdb:mainfrom
swahtz:debug_build_fixes

Conversation

@swahtz

@swahtz swahtz commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

These are proposed changes which fixes #337. Primarily this is to make sure the flags we specify for debug builds are passed through to the compiler correctly when using build.sh and that debug symbols and line numbers are being preserved by the linker. The name of the build I changed to 'Debug' because cmake is case sensitive and I wanted to be consistent with CMake 'typical values'

…specified in build.sh

Using 'Debug' as build-type string
Added linker options so that debug builds will preserve symbols

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz requested a review from a team as a code owner November 17, 2025 05:59
@swahtz swahtz added the cmake/build Issues related to building and CMake label Nov 17, 2025

@harrism harrism left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good. The root cause indeed seems to have been case/capitalization. Surprised cmake doesn't auto-add -g to linker line for debug builds. Have you verified it does not?

Comment thread src/tests/CMakeLists.txt Outdated
@harrism harrism added this to fVDB Nov 17, 2025
…hese build types

Signed-off-by: Jonathan Swartz <jonathan@jswartz.info>
@swahtz swahtz enabled auto-merge (squash) November 18, 2025 00:11
@swahtz swahtz merged commit 3eae6b8 into openvdb:main Nov 18, 2025
32 checks passed
@github-project-automation github-project-automation Bot moved this to Done in fVDB Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake/build Issues related to building and CMake

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Problem with debug build configuration

2 participants