mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00: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:
parent
931820d33c
commit
08fa148310
3 changed files with 1 additions and 4 deletions
|
@ -207,8 +207,6 @@ def configure(env: "SConsEnvironment"):
|
|||
env.Append(CPPDEFINES=[("_FILE_OFFSET_BITS", 64)])
|
||||
|
||||
if env["arch"] == "x86_32":
|
||||
# The NDK adds this if targeting API < 24, so we can drop it when Godot targets it at least
|
||||
env.Append(CCFLAGS=["-mstackrealign"])
|
||||
if has_swappy:
|
||||
env.Append(LIBPATH=["#thirdparty/swappy-frame-pacing/x86"])
|
||||
elif env["arch"] == "x86_64":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue