From 5d2bb7e206232879729a0b53aa6f289077977f3c Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Thu, 17 Apr 2025 21:37:55 +0300 Subject: [PATCH] Correct gcc flag placement --- AMBuildScript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index f4e15ba..44c8191 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -139,14 +139,16 @@ class MMSConfig(object): '-fno-rtti', '-fno-threadsafe-statics', '-Wno-non-virtual-dtor', - '-Wno-class-memaccess', '-Wno-overloaded-virtual', '-Wno-register', ] if (cxx.version >= 'gcc-4.7' or cxx.family == 'clang'): cxx.cxxflags += ['-Wno-delete-non-virtual-dtor'] if cxx.family == 'gcc': - cxx.cflags += ['-mfpmath=sse'] + cxx.cflags += [ + '-mfpmath=sse', + '-Wno-class-memaccess' + ] if cxx.family == 'clang': cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] if cxx.version >= 'clang-3.9' or cxx.version >= 'apple-clang-10.0':