mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
refact: Extract build-utils-meson/libatomic
This commit is contained in:
parent
8f553f6eef
commit
ffc1b30f50
2 changed files with 9 additions and 8 deletions
8
build-utils-meson/libatomic/meson.build
Normal file
8
build-utils-meson/libatomic/meson.build
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue