1
Fork 0

SConstruct: fix build with gcc-11

This commit is contained in:
Nedko Arnaudov 2023-06-18 17:10:40 +03:00
parent 1ff65c1b0c
commit cc2528e10c
1 changed files with 8 additions and 6 deletions

View File

@ -73,15 +73,16 @@ class LocalEnvironment(Environment):
else:
self.Append(
CXXFLAGS=[
"-fpermissive",
"-g",
"-DDEBUG",
"-fno-strict-aliasing",
"-fwrapv",
"-Wall",
"-Wno-deprecated",
'-march=core2', #x86_64: we need to take this out
'-mfpmath=sse',
'-msse',
# '-march=core2', #x86_64: we need to take this out
# '-mfpmath=sse',
# '-msse',
'-ffast-math',
],
)
@ -103,13 +104,14 @@ class LocalEnvironment(Environment):
else:
self.Append(
CXXFLAGS=[
"-fpermissive",
"-fno-strict-aliasing",
"-fwrapv",
"-Wall",
"-Wno-deprecated",
'-march=core2', #x86_64: we need to take this out
'-mfpmath=sse',
'-msse',
# '-march=core2', #x86_64: we need to take this out
# '-mfpmath=sse',
# '-msse',
'-O3',
'-funroll-loops',
'-fomit-frame-pointer',