From 37eec84bc1fab6723024152b34ce0f5aa3b32f0f Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Wed, 27 Aug 2025 21:28:42 +0200 Subject: [PATCH] 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. --- nix-meson-build-support/libatomic/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-meson-build-support/libatomic/meson.build b/nix-meson-build-support/libatomic/meson.build index d16d23817..1c014bee7 100644 --- a/nix-meson-build-support/libatomic/meson.build +++ b/nix-meson-build-support/libatomic/meson.build @@ -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