Repository navigation
BUILD-XMA2-OPT-IN: gate configure-time Cargo XMA2 build behind -DLEONIDA_XMA2_DECODER=ON (#963) - #995
Open
markankamaransheogarat-sys wants to merge 2 commits into
Conversation
KernelSmoker
approved these changes
Nov 24, 2026
KernelSmoker
left a comment
Contributor
There was a problem hiding this comment.
Reviewed exact head b30db41. On latest main 82a2aab, the new Python regression passed 1/1, docs links 16/16, no-game-data scan and diff check passed. I also configured the Windows-only CMake branch in a disposable Fedora 45 environment with a fake Cargo executable: with LEONIDA_XMA2_DECODER=OFF, configure completed and Cargo was not invoked; with the option ON, it invoked Cargo and tolerated the simulated build failure when not required; with LEONIDA_REQUIRE_XMA2_DECODER=ON, the same failure stopped configuration as required. This tests the gating and required-mode behavior, not a real Rust/XMA2 build or Windows runtime. Hosted checks were queued at review time.
…IDA_XMA2_DECODER=ON (ProjectLeonida#963)
markankamaransheogarat-sys
force-pushed
the
ubiq/cmake-xma2-opt-in
branch
from
November 25, 2026 19:32
b30db41 to
9bc6e15
Compare
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.
Summary
runtime/CMakeLists.txtpreviously rancargo build(fetchinggithub.com/omonkeyz/xbox-emulator) at CMake configure time whenevercargowas onPATH.option(LEONIDA_XMA2_DECODER "Build the Rust XMA2 decoder at configure time" OFF)and gatesfind_program(LEONIDA_CARGO cargo)+execute_process(...)onif(LEONIDA_XMA2_DECODER OR LEONIDA_REQUIRE_XMA2_DECODER)..github/workflows/runtime.ymlalready passes-DLEONIDA_REQUIRE_XMA2_DECODER=ON, so CI continues to build and require the decoder unchanged.runtime/xma_decoder/README.mdand addstests/test_cmake_xma2_opt_in.py.Verification
python3 -I tests/test_cmake_xma2_opt_in.py: 1/1 passed.python3 -I scripts/check_no_game_data.py runtime/CMakeLists.txt runtime/xma_decoder/README.md tests/test_cmake_xma2_opt_in.py: passed.AI-assisted: yes (no game files).