mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +01:00
meson: link to libatomic on powerpc-linux
Like 32-bit Arm, 32-bit PowerPC also needs linking against libatomic because it doesn't support some atomic instructions in hardware.
This commit is contained in:
parent
5e46df973f
commit
37eec84bc1
1 changed files with 1 additions and 1 deletions
|
|
@ -3,6 +3,6 @@
|
|||
# This is needed for std::atomic on some platforms
|
||||
# We did not manage to test this reliably on all platforms, so we hardcode
|
||||
# it for now.
|
||||
if host_machine.cpu_family() == 'arm'
|
||||
if host_machine.cpu_family() in [ 'arm', 'ppc' ]
|
||||
deps_other += cxx.find_library('atomic')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue