Skip to content

Fix use arm neon instructions if targeting 32-bit arm architectures only - #556

Open
gilzoide wants to merge 2 commits into
Samsung:masterfrom
gilzoide:fix-arm-neon-inclusion
Open

Fix use arm neon instructions if targeting 32-bit arm architectures only#556
gilzoide wants to merge 2 commits into
Samsung:masterfrom
gilzoide:fix-arm-neon-inclusion

Conversation

@gilzoide

@gilzoide gilzoide commented Feb 27, 2024

Copy link
Copy Markdown

This fixes compilation for arm64 platforms that support neon instructions, like Apple Silicon, because the assembly code contained in pixman-arm-neon-asm.S is armv7 assembly, which is not supported by arm64 compilers.

Fixes #496.

This fixes compilation for arm64 platforms, like Apple Silicon, because the assembly code contained in `pixman-arm-neon-asm.S` is armv7 assembly, which is not supported by arm64 compilers.
ed-asriyan added a commit to ed-asriyan/lottie-converter that referenced this pull request May 26, 2024
Newer versions of the Android NDK use clang for compiling, which cannot compile the code contained in `pixman-arm-neon-asm.S`.
@gilzoide

gilzoide commented Sep 7, 2024

Copy link
Copy Markdown
Author

Now this PR also fixes compilation when using clang, for example when building rlottie for Android arm32 with newer versions of the NDK, which cannot build pixman-arm-neon-asm.S.

@thomastay

Copy link
Copy Markdown

This worked for me on mac, would be great if it could be merged

@mdingwall

Copy link
Copy Markdown

To add fuel to this, I have successfully used this to build on MacOS 15.1.1 on an M1 Pro MacBook Pro and in an AARCH64 Ubuntu 22.04 VM on the same machine.

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.

Linker error on iOS and Apple Silicon: Undefined symbol _pixman_composite_over_n_8888_asm_neon

3 participants