From 31dd74c50338f867a5b6759579a5d5b8377f6bbd Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 4 Aug 2023 18:02:16 +0200 Subject: [PATCH] Fix test compilation on macOS Parallel algorithms are not implemented on macOS --- tests/ComputeParticlesTest/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ComputeParticlesTest/main.cpp b/tests/ComputeParticlesTest/main.cpp index e31d146d3..370ce7937 100644 --- a/tests/ComputeParticlesTest/main.cpp +++ b/tests/ComputeParticlesTest/main.cpp @@ -259,7 +259,11 @@ int main() Nz::SparsePtr particlePosPtr(particleBasePtr + particlePosOffset, particleSize); Nz::SparsePtr particleVelPtr(particleBasePtr + particleVelOffset, particleSize); +#ifndef NAZARA_PLATFORM_MACOS std::for_each_n(std::execution::par_unseq, particleBasePtr, particleCount, [&](Nz::UInt8& hax) +#else + std::for_each_n(particleBasePtr, particleCount, [&](Nz::UInt8& hax) +#endif { static thread_local std::mt19937 rand_mt(std::random_device{}());