mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
SCons: Explicitly enable -mfpmath=sse -mstackrealign for x86_32
Passing `-msse2` doesn't seem to be sufficient to opt into SSE floating point math instead of the less stable x87. `-mstackrealign` also seems necessary when using SSE on x86_32.
This commit is contained in:
@@ -718,7 +718,7 @@ if env["arch"] == "x86_32":
|
||||
if env.msvc:
|
||||
env.Append(CCFLAGS=["/arch:SSE2"])
|
||||
else:
|
||||
env.Append(CCFLAGS=["-msse2"])
|
||||
env.Append(CCFLAGS=["-msse2", "-mfpmath=sse", "-mstackrealign"])
|
||||
|
||||
# Explicitly specify colored output.
|
||||
if methods.using_gcc(env):
|
||||
|
||||
Reference in New Issue
Block a user