Skip to content

Allow building on non-x86 systems - #164

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

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

Conversation

@kpchoi

@kpchoi kpchoi commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Based on #158 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:

  • The plain C fallback did not build for the main profile (src_main/xevem_type.h still pulled in SSE/AVX headers via #ifndef ARM).
  • 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 documented -DARM=TRUE cross-build flow keeps working.
  • Dropped globs for the nonexistent src_main/neon directory.

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

Closes #158

scaronni and others added 2 commits August 7, 2026 06:37
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 82559a4 into master Aug 7, 2026
6 checks passed
@kpchoi
kpchoi deleted the non_x86_build branch August 8, 2026 05:10
@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