Correct gcc flag placement

This commit is contained in:
GAMMACASE 2025-04-17 21:37:55 +03:00 committed by Nicholas Hastings
parent 624c8a9f1d
commit 5d2bb7e206

View File

@ -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':