Skip to content

Allow building on non-x86 systems - #91

Merged
mpeg5 merged 2 commits into
masterfrom
non_x86_build
Aug 7, 2026
Merged

Allow building on non-x86 systems#91
mpeg5 merged 2 commits into
masterfrom
non_x86_build

Conversation

@kpchoi

@kpchoi kpchoi commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Based on #87 by @scaronni — his commit is included as is. This adds native builds on ARM and a plain C fallback for any other architecture, so the library can be packaged from source without cross-compiling on x86.

Follow-up fixes on top:

  • Arch detection is now case-insensitive and includes amd64; the original regex missed Windows' AMD64/ARM64, which would silently drop all SIMD from MSVC builds.
  • Detection moved to the top-level CMakeLists so it runs once and applies -DX86/-DARM on all platforms including MSVC; the -DARM=TRUE cross-build flow keeps working. This also removes the duplicate ARM block the patch added at the bottom of the top-level CMakeLists.

Verified on x86-64 (SIMD kept) and with a forced riscv64 target for the plain C fallback, both profiles; decoded output bit-exact in all cases.

Closes #87

scaronni and others added 2 commits August 7, 2026 07:11
Signed-off-by: KP Choi <kp5.choi@samsung.com>
Signed-off-by: KP Choi <kp5.choi@samsung.com>

@mpeg5 mpeg5 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mpeg5
mpeg5 merged commit 0a6a7c8 into master Aug 7, 2026
3 checks passed
@kpchoi
kpchoi deleted the non_x86_build branch August 8, 2026 05:12
@scaronni

scaronni commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Thank you!

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.

3 participants