Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ project('nntrainer', 'c', 'cpp',
cmake_build_type = 'Release'
if get_option('buildtype') == 'debug'
cmake_build_type = 'Debug'
# Meson currently has known issues applying b_vscrt properly for clang++.exe on Windows
# Just setting buildtype=debug may not switch the CRT or iterator level.
# Therefore, forcing _ITERATOR_DEBUG_LEVEL=2 for Meson debug build to match VS Debug
if build_machine.system() == 'windows'
add_project_arguments('-D_ITERATOR_DEBUG_LEVEL=2', language : 'cpp')
Copy link
Contributor

@songgot songgot Dec 5, 2025

Choose a reason for hiding this comment

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

:)

Suggested change
add_project_arguments('-D_ITERATOR_DEBUG_LEVEL=2', language : 'cpp')
add_project_arguments('-D_ITERATOR_DEBUG_LEVEL=2', language: 'cpp')

endif
endif

common_win_subproject_cmake_defines = {
Expand Down
Loading