Skip to content

[win] Fix build and tests with winrtdebug=ON#19404

Merged
bellenot merged 6 commits intoroot-project:masterfrom
bellenot:fix-winrtdebug
Jul 18, 2025
Merged

[win] Fix build and tests with winrtdebug=ON#19404
bellenot merged 6 commits intoroot-project:masterfrom
bellenot:fix-winrtdebug

Conversation

@bellenot
Copy link
Copy Markdown
Member

@bellenot bellenot commented Jul 18, 2025

  • Add the -RTC1 (runtime check) compiler flag with winrtdebug=ON and dev=ON
  • Add the -D_ITERATOR_DEBUG_LEVEL=0 flag where needed, to work-around the issue with STL iterators and I/O. This produce incompatible debug binaries, but allows to debug ROOT
  • Add the LLVM_ENABLE_DUMP=TRUE option when LLVM_BUILD_TYPE is Debug or RelWithDebInfo

- Add the -RTC1 (runtime check) compiler flag with winrtdebug=ON and dev=ON
- Add the -D_ITERATOR_DEBUG_LEVEL=0 flag where needed, to work-around the issue with STL iterators and I/O. This produce incompatible debug binaries, but allows to debug ROOT
- Add the LLVM_ENABLE_DUMP=TRUE option when LLVM_BUILD_TYPE is Debug or RelWithDebInfo
- Fix gtest-tree-ntuple-ntuple-packing, which was failing for one bit difference
@bellenot bellenot self-assigned this Jul 18, 2025
Copy link
Copy Markdown
Member

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

I used this patch and it worked for me. Looks good, given the minor comment.

Comment thread interpreter/CMakeLists.txt Outdated
Comment thread interpreter/CMakeLists.txt
Co-authored-by: Vassil Vassilev <v.g.vassilev@gmail.com>
Comment thread interpreter/CMakeLists.txt Outdated
Comment thread interpreter/CMakeLists.txt Outdated
@bellenot bellenot closed this Jul 18, 2025
@bellenot bellenot reopened this Jul 18, 2025
Comment thread tree/ntuple/src/RColumnElement.hxx Outdated
Comment thread core/base/src/TSystem.cxx Outdated
@bellenot bellenot requested review from pcanal and removed request for couet, jblomer and silverweed July 18, 2025 16:27
Copy link
Copy Markdown
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

Thanks.

@bellenot bellenot merged commit 89696ca into root-project:master Jul 18, 2025
62 of 66 checks passed
@bellenot bellenot deleted the fix-winrtdebug branch July 18, 2025 19:38
martinfoell pushed a commit to martinfoell/root that referenced this pull request Oct 9, 2025
* [win] Fix build and tests with winrtdebug=ON

- Add the -RTC1 (runtime check) compiler flag with winrtdebug=ON and dev=ON
- Add the -D_ITERATOR_DEBUG_LEVEL=0 flag where needed, to work-around the issue with STL iterators and I/O. This produce incompatible debug binaries, but allows to debug ROOT
- Add the LLVM_ENABLE_DUMP=TRUE option when LLVM_BUILD_TYPE is Debug or RelWithDebInfo
- Fix gtest-tree-ntuple-ntuple-packing, which was failing for one bit difference

* Update interpreter/CMakeLists.txt

Co-authored-by: Vassil Vassilev <v.g.vassilev@gmail.com>

* Update interpreter/CMakeLists.txt

* Update interpreter/CMakeLists.txt

* Revert changes in tree/ntuple/src/RColumnElement.hxx

* debug and optimized are exclusive on Windows only

---------

Co-authored-by: Vassil Vassilev <v.g.vassilev@gmail.com>
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.

3 participants