Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.

add sse2 and atomic build flags #307

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

YangMame
Copy link

No description provided.

@YangMame
Copy link
Author

the reason: xbmc/xbmc#21743
RISC-V lack 8-bit and 16-bit atomic instructions, and
ARM/MIPS/PPC lack 64-bit atomic instruction.

GCC is supposed to convert these atomics via masking and shifting
like LLVM, which means anything that wants to use these instructions
needs the link option -latomic.

In this patch, we will try to detect if 8-bit, 64-bit atomic instructions exist,
otherwise the atomic library will append to the DEPLIBS list.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant