diff --git a/Source/Engine/Platform/Mac/MacPlatform.h b/Source/Engine/Platform/Mac/MacPlatform.h index 6a195a489..0a837fe03 100644 --- a/Source/Engine/Platform/Mac/MacPlatform.h +++ b/Source/Engine/Platform/Mac/MacPlatform.h @@ -44,11 +44,11 @@ public: } FORCE_INLINE static int32 AtomicRead(int32 volatile* dst) { - return __atomic_load_n(dst, __ATOMIC_SEQ_CST); + return __atomic_load_n(dst, __ATOMIC_RELAXED); } FORCE_INLINE static int64 AtomicRead(int64 volatile* dst) { - return __atomic_load_n(dst, __ATOMIC_SEQ_CST); + return __atomic_load_n(dst, __ATOMIC_RELAXED); } FORCE_INLINE static void AtomicStore(int32 volatile* dst, int32 value) { diff --git a/Source/Tools/Flax.Build/Platforms/Mac/MacToolchain.cs b/Source/Tools/Flax.Build/Platforms/Mac/MacToolchain.cs index e105c8477..762fc962f 100644 --- a/Source/Tools/Flax.Build/Platforms/Mac/MacToolchain.cs +++ b/Source/Tools/Flax.Build/Platforms/Mac/MacToolchain.cs @@ -165,7 +165,6 @@ namespace Flax.Build.Platforms commonArgs.Add("-Wno-nullability-completeness"); commonArgs.Add("-Wno-undef-prefix"); commonArgs.Add("-Wno-expansion-to-defined"); - commonArgs.Add("-Wno-non-virtual-dtor"); // Hide all symbols by default commonArgs.Add("-fvisibility-inlines-hidden");