mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
nix-util / meson: Add -latomic on arm
I couldn't get the test program to work correctly after many attempts, so let's just unblock this without making it perfect.
This commit is contained in:
parent
59acf3b75c
commit
56b8911766
1 changed files with 8 additions and 0 deletions
|
@ -50,6 +50,14 @@ endforeach
|
||||||
|
|
||||||
subdir('build-utils-meson/threads')
|
subdir('build-utils-meson/threads')
|
||||||
|
|
||||||
|
# Check if -latomic is needed
|
||||||
|
# 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'
|
||||||
|
deps_other += cxx.find_library('atomic')
|
||||||
|
endif
|
||||||
|
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
socket = cxx.find_library('ws2_32')
|
socket = cxx.find_library('ws2_32')
|
||||||
deps_other += socket
|
deps_other += socket
|
||||||
|
|
Loading…
Reference in a new issue