Skip to content

CMake: do not add -D_DEBUG on MSVC - #54

Open
ASDAlexander77 wants to merge 1 commit into
NVIDIA-RTX:mainfrom
ASDAlexander77:no-D_DEBUG-on-MSVC
Open

ASDAlexander77 wants to merge 1 commit into
NVIDIA-RTX:mainfrom
ASDAlexander77:no-D_DEBUG-on-MSVC

Conversation

@ASDAlexander77

Copy link
Copy Markdown

MSVC defines _DEBUG itself with /MTd//MDd. The unconditional -D_DEBUG in CMAKE_CXX_FLAGS_DEBUG additionally pulls in the debug CRT (_malloc_dbg, libcpmtd) when Donut is built in a Debug configuration with a release CRT (/MT), which doesn't provide them. Only add it for non-MSVC compilers.

🤖 Generated with Claude Code

MSVC defines _DEBUG itself with /MTd; the extra define pulls in the debug CRT (_malloc_dbg, libcpmtd) in a Debug configuration built with /MT.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@ASDAlexander77

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

1 participant