Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

SCons: Only apply `-mcmodel=medium` to `x86_64`

Thaddeus Crewsfcaa0d87f433
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 846dd1e0148..97539f232e5 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -162,7 +162,7 @@ def configure(env: "SConsEnvironment"):
if env["use_ubsan"] or env["use_asan"] or env["use_lsan"] or env["use_tsan"] or env["use_msan"]:
env.extra_suffix += ".san"
- if not env["use_llvm"] and "64" in env["arch"]:
+ if not env["use_llvm"] and env["arch"] == "x86_64":
env.Append(CCFLAGS=["-mcmodel=medium"])
env.Append(LINKFLAGS=["-mcmodel=medium"])