You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
XMA2 CI: link the smoke test with rustc native libraries - #7716
Build the static library with cargo rustc and use its native-static-libs note for the C++ smoke test link. Pass the arguments in order after /link so linker options such as /defaultlib:msvcrt reach MSVC. Compile the smoke test with /MD to match the default Rust MSVC target's CRT.
Depends on: #7506
The two patches overlap in the smoke-test link command and its README. This follow-up gets the library and linker option list from the installed toolchain.
Verification
On Windows 11 x64 with Rust 1.95.0 and VS 2022 Build Tools 17.14, ran the workflow's PowerShell blocks locally. Formatting passed, all eight Rust tests passed, and the synthetic C++ ABI smoke test linked and ran with both a fresh and cached Cargo build.
The local list included /defaultlib:msvcrt. Before /MD the link emitted LNK4098. With /MD both smoke runs completed without that warning.
The branch merged cleanly in a local merge-tree check against dde82f2. git diff --check and check_no_game_data.py passed for both changed files. CPU-only synthetic tests.
Independent native Windows check of 95163e2e with Rust 1.99.1 and MSVC 19.44.
Formatting and all eight Rust tests passed. The C++ ABI smoke test linked with /MD and ran successfully with both a fresh and a cached Cargo build. Each build produced one native-static-libs note in the same order. Neither link emitted LNK4098.
This toolchain's list did not include synchronization.lib, the library added explicitly by #7506. This run verifies the workflow on the toolchain above. Synthetic inputs only. AI-assisted.
This is the toolchain on which [RT-197] Add the XMA2 decoder C ABI boundary #3441's hand-written list failed with LNK2019 on WaitOnAddress/WakeByAddress*. Here it lists synchronization.lib, plus kernel32.lib and dbghelp.lib, which the old list also lacked. @thehollowedone's Rust 1.99.1 list had no synchronization.lib. So the needed list really does differ between toolchains, and reading it from rustc covers both.
Nit, optional:-split '\s+' would pass an empty argument to link if the note ever ended in whitespace. It doesn't on this runner, but | Where-Object { $_ } would make that impossible.
I read the diff before running it. Only .github/workflows/xma2-decoder.yml and runtime/xma_decoder/README.md change, and nothing outside the workflow executes code. With this branch, tests/test_docs_*.py, test_ci_registration, test_no_game_data_workflow, test_check_apt_key and test_check_no_game_data give the same results as plain main dde82f27e: all OK except test_docs_cli_flags and test_docs_links, which fail identically on main (docs/dev-tools.md, after BUILD-2248: run a synthetic guest scene with persistent output from the development CLI #6691).
No game files. AI-assisted (Claude Code).
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
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.
XMA2-NATIVE-STATIC-LIBS (claim, finding)
Build the static library with cargo rustc and use its native-static-libs note for the C++ smoke test link. Pass the arguments in order after /link so linker options such as /defaultlib:msvcrt reach MSVC. Compile the smoke test with /MD to match the default Rust MSVC target's CRT.
Depends on: #7506
The two patches overlap in the smoke-test link command and its README. This follow-up gets the library and linker option list from the installed toolchain.
Verification
AI-assisted (Codex).