Skip to content

Refactor Yokai system and architecture detection, detect architecture cross-compilation, extend architecture detection#1987

Merged
illwieckz merged 3 commits into
masterfrom
illwieckz/yokai
Jul 6, 2026
Merged

Refactor Yokai system and architecture detection, detect architecture cross-compilation, extend architecture detection#1987
illwieckz merged 3 commits into
masterfrom
illwieckz/yokai

Conversation

@illwieckz

@illwieckz illwieckz commented Jul 1, 2026

Copy link
Copy Markdown
Member
  • Update qprocessordetection.h from Qt upstream and recognize loong64.
    The Loongsoon architecture is one of the architectures supported by box64, so it's likely possible to run Unvanquished on it (like ppc64el and riscv64).
  • Rework the architecture and system detection.
    Unify the woridng of the code, and better code in general, also fixes some edge cases Unvanquished/Dæmon wasn't triggering.
  • Detect host architecture.
    Make possible to detect when cross-compiling from one architecture to another on the same system.

I started using Yokai in a local branch of the Saigo release scripts and I noticed a linking bug happening on FreeBSD when cross-compiling a 32-bit binutils on a 64-bit system (classic -L/usr/lib32 thing). I finally fixed that by patching binutils, but that's a proof it is useful to detect that the target architecture differs from the host target.

@illwieckz illwieckz added T-Improvement Improvement for an existing feature A-Build labels Jul 1, 2026
Comment thread cmake/Yokai/Architecture.cmake Outdated
Comment thread cmake/Yokai/Architecture.cmake
Comment thread cmake/Yokai/Architecture.cmake Outdated
Comment thread cmake/Yokai/Architecture.cmake Outdated
@illwieckz illwieckz force-pushed the illwieckz/yokai branch 3 times, most recently from 1a3972a to c69802e Compare July 2, 2026 07:20
@slipher

slipher commented Jul 3, 2026

Copy link
Copy Markdown
Member

LGTM

@illwieckz illwieckz force-pushed the illwieckz/yokai branch 3 times, most recently from a44af97 to dcafe3a Compare July 6, 2026 04:26
@illwieckz

Copy link
Copy Markdown
Member Author

I had missed the armv8l value for arm64 that was in my original branch. Now added.

@illwieckz illwieckz merged commit f3da94a into master Jul 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Build T-Improvement Improvement for an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants