You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #105697 from akien-mga/scons-x86_32-mfpmath-sse
SCons: Explicitly enable `-mfpmath=sse -mstackrealign` for x86_32
This commit is contained in:
@@ -718,7 +718,7 @@ if env["arch"] == "x86_32":
|
|||||||
if env.msvc:
|
if env.msvc:
|
||||||
env.Append(CCFLAGS=["/arch:SSE2"])
|
env.Append(CCFLAGS=["/arch:SSE2"])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=["-msse2"])
|
env.Append(CCFLAGS=["-msse2", "-mfpmath=sse", "-mstackrealign"])
|
||||||
|
|
||||||
# Explicitly specify colored output.
|
# Explicitly specify colored output.
|
||||||
if methods.using_gcc(env):
|
if methods.using_gcc(env):
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ if env["builtin_embree"]:
|
|||||||
env.Append(LINKFLAGS=["psapi.lib"])
|
env.Append(LINKFLAGS=["psapi.lib"])
|
||||||
else:
|
else:
|
||||||
env.Append(LIBS=["psapi"])
|
env.Append(LIBS=["psapi"])
|
||||||
env_raycast.Append(CCFLAGS=["-mstackrealign"])
|
|
||||||
|
|
||||||
if env.msvc: # Disable bogus warning about intentional struct padding.
|
if env.msvc: # Disable bogus warning about intentional struct padding.
|
||||||
env_raycast.Append(CCFLAGS=["/wd4324"])
|
env_raycast.Append(CCFLAGS=["/wd4324"])
|
||||||
|
|||||||
@@ -207,8 +207,6 @@ def configure(env: "SConsEnvironment"):
|
|||||||
env.Append(CPPDEFINES=[("_FILE_OFFSET_BITS", 64)])
|
env.Append(CPPDEFINES=[("_FILE_OFFSET_BITS", 64)])
|
||||||
|
|
||||||
if env["arch"] == "x86_32":
|
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:
|
if has_swappy:
|
||||||
env.Append(LIBPATH=["#thirdparty/swappy-frame-pacing/x86"])
|
env.Append(LIBPATH=["#thirdparty/swappy-frame-pacing/x86"])
|
||||||
elif env["arch"] == "x86_64":
|
elif env["arch"] == "x86_64":
|
||||||
|
|||||||
Reference in New Issue
Block a user