-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] FIX: MSVC compiler missing header breaking debugging #40681
[WIP] FIX: MSVC compiler missing header breaking debugging #40681
Conversation
Can you try to get this upstreamed too? Or a better version of it without the capslocks :P |
Don't merge only fixes win32... so not the entire fix. |
Is it related to doctest/doctest#381 ? |
he missed platform fix see new commit |
|
||
DOCTEST_THREAD_LOCAL std::ostringstream g_oss; // NOLINT(cert-err58-cpp) | ||
|
||
#if defined(DOCTEST_PLATFORM_WINDOWS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try to keep the indentation correct even if it's a hotfix :)
And see @bruvzg's comment about editing third-party libs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do sorry MSVC keeps lagging out when I type in it... I will update with a real text editor and squash at the end once we are certain this is gone :D
It seems like it's possible to get into editor in 50% of times with current changes (compared to 30%), but I still get crashes on startup while debugging. D: |
OK I updated all to use thread_local statically with the windows platform only. Please let me know if the crash is gone |
No, it may have improved the situation, but I might have just got lucky enough to run it 10 times in a row, but then crashes again 5 times in a row. 😄 |
0c41535
to
138326c
Compare
Closing: this fix 'kind of worked' but its mostly a hack, we can fix with swapping to /MD but ideally don't want to do this. |
Fixes #40666
Caused by a problem in the MSVC compiler, and thread_local on windows.