Skip to content

fix(cmake): normalize ARCH_ID for x86_64 JIT sources on Windows#21

Open
ArqTras wants to merge 2 commits into
arqma:masterfrom
ArqTras:chore/mingw-arch-id-lowercase
Open

fix(cmake): normalize ARCH_ID for x86_64 JIT sources on Windows#21
ArqTras wants to merge 2 commits into
arqma:masterfrom
ArqTras:chore/mingw-arch-id-lowercase

Conversation

@ArqTras
Copy link
Copy Markdown
Member

@ArqTras ArqTras commented May 13, 2026

When the parent project sets \ARCH_ID\ from \CMAKE_SYSTEM_PROCESSOR\ (e.g. AMD64 on Windows/MSYS2), RandomARQ only matched lowercase \�md64\ / \x86_64, so \jit_compiler_x86.cpp\ and \jit_compiler_x86_static.S\ were never added and the static library missed JIT symbols.

After resolving \ARCH_ID\ (inherited or from the host), always apply \string(TOLOWER)\ before the architecture checks so x86-64 JIT sources are included.

Fork branch: https://github.com/ArqTras/RandomARQ/tree/chore/mingw-arch-id-lowercase

Made with Cursor

ArqTras added 2 commits May 13, 2026 19:10
The 3.12...3.31 range form raises default policies and breaks the LANGUAGE=C build of

jit_compiler_x86_static.S on MSYS2 GCC. A plain minimum of 3.12 keeps CMake 4 compatibility.
Parent CMake may pass ARCH_ID from CMAKE_SYSTEM_PROCESSOR (e.g. AMD64 on Windows). RandomARQ only matched lowercase amd64/x86_64, so jit_compiler_x86 sources were skipped. Always normalize ARCH_ID with string(TOLOWER) after resolving the default.
@ArqTras ArqTras requested a review from malbit May 13, 2026 20:17
@ArqTras
Copy link
Copy Markdown
Member Author

ArqTras commented May 13, 2026

build on mingw passed no other changes required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant