Repository navigation
Tests: the no-CRT fixtures link in Debug - #3680
Merged
Merged
Conversation
dll_thread_calls and tiny_tls_cb_only link with /NODEFAULTLIB, but the Visual Studio generator's Debug config compiles with /RTC1, whose checks reference _RTC_InitBase and _RTC_Shutdown: LNK1120 in Debug. Both fixtures define the two as no-ops when __MSVC_RUNTIME_CHECKS is set. Release and RelWithDebInfo are unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Tested a83d28f on Windows 11, MSVC 19.42 (VS 2022 Build Tools), Windows SDK 10.0.28000.0, with the Ninja generator and The description reproduces this with the Visual Studio generator. It is not specific to it: CMake's default Debug flags for MSVC carry
No blocker found. No GPU is involved in these two tests. AI-assisted (Claude Code); test fixtures only, no game files. |
Contributor
|
Tested
AI-assisted (Claude Code). |
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claim: #3574 (comment)
AI-assisted (Claude Code). Test-only change; no game files.
Problem
The
dll_thread_callsfixture (from #2383) andtiny_tls_cb_onlylink with/NODEFAULTLIB, but the Visual Studio generator's default Debug config compiles with/RTC1. Its checks reference_RTC_InitBaseand_RTC_Shutdown, so a Debug build fails with LNK1120. CI builds RelWithDebInfo, so only local Debug builds hit it. Found while fixing the same thing forgameinput_hostin #2420 (review by JRamos1993).Change
Both fixtures define the two functions as no-ops under
#ifdef __MSVC_RUNTIME_CHECKS. Nothing else changes; Release and RelWithDebInfo do not define the macro, so they are untouched.Tested
Windows 11 build 26300, MSVC 19.44 (Visual Studio generator), AMD Radeon RX 9060 XT (32.0.32029.2010). Base
f847748c, heada83d28fb.cmake --build runtime/build --config Debug --target dll_thread_calls tiny_tls_cb_onlyfails with LNK2001_RTC_InitBase,_RTC_Shutdownand LNK1120 for each.ctest -C Debug -R "loader_tls|dll_thread_calls"passes 2/2.ctest -C Release -R "loader_tls|dll_thread_calls"passes 2/2.🤖 Generated with Claude Code