Skip to content
Snippets Groups Projects
Commit 70303d21 authored by Guillaume Tucker's avatar Guillaume Tucker Committed by Simon Ser
Browse files

meson: add libatomic dependency


Add conditional dependency on GCC's libatomic in order to be able to
use the __atomic_* functions instead of the older __sync_* ones.  The
libatomic library is only needed when there aren't any native support
on the current architecture, so a linker test is used for this
purpose.  This makes atomic operations available on a wider number of
architectures including MIPS.

Signed-off-by: default avatarGuillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: default avatarSimon Ser <simon.ser@intel.com>
parent a6f5cc85
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment