You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
OSX: Remove support for 32-bit and fat binaries
Mac OS X is 64-bit only since 10.7 (Lion), which has reached End-Of-Life in October 2014. Therefore it no longer makes sense to support exporting 32-bit binaries for Mac OS X, and we can now default to 64-bit instead of bigger "fat" binaries. (cherry picked from commitsf04958cd5d,42c5af5e48,3e6f2b7d98, and1602e0cdb9)
This commit is contained in:
@@ -22,7 +22,6 @@ def can_build():
|
||||
def get_opts():
|
||||
|
||||
return [
|
||||
('force_64_bits', 'Force 64 bits binary', 'no'),
|
||||
('osxcross_sdk', 'OSXCross SDK version', 'darwin14'),
|
||||
|
||||
]
|
||||
@@ -38,8 +37,9 @@ def configure(env):
|
||||
|
||||
env.Append(CPPPATH=['#platform/osx'])
|
||||
|
||||
if (env["bits"] == "default"):
|
||||
env["bits"] = "32"
|
||||
# Mac OS X no longer runs on 32-bit since 10.7 which is unsupported since 2014
|
||||
# As such, we only support 64-bit
|
||||
env["bits"] = "64"
|
||||
|
||||
if (env["target"] == "release"):
|
||||
|
||||
@@ -55,26 +55,12 @@ def configure(env):
|
||||
|
||||
if ("OSXCROSS_ROOT" not in os.environ):
|
||||
# regular native build
|
||||
if (env["bits"] == "64"):
|
||||
env.Append(CCFLAGS=['-arch', 'x86_64'])
|
||||
env.Append(LINKFLAGS=['-arch', 'x86_64'])
|
||||
elif (env["bits"] == "32"):
|
||||
env.Append(CCFLAGS=['-arch', 'i386'])
|
||||
env.Append(LINKFLAGS=['-arch', 'i386'])
|
||||
else:
|
||||
env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
|
||||
env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
|
||||
env.Append(CCFLAGS=['-arch', 'x86_64'])
|
||||
env.Append(LINKFLAGS=['-arch', 'x86_64'])
|
||||
else:
|
||||
# osxcross build
|
||||
root = os.environ.get("OSXCROSS_ROOT", 0)
|
||||
if env["bits"] == "fat":
|
||||
basecmd = root + "/target/bin/x86_64-apple-" + env["osxcross_sdk"] + "-"
|
||||
env.Append(CCFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
|
||||
env.Append(LINKFLAGS=['-arch', 'i386', '-arch', 'x86_64'])
|
||||
elif env["bits"] == "32":
|
||||
basecmd = root + "/target/bin/i386-apple-" + env["osxcross_sdk"] + "-"
|
||||
else: # 64-bit, default
|
||||
basecmd = root + "/target/bin/x86_64-apple-" + env["osxcross_sdk"] + "-"
|
||||
basecmd = root + "/target/bin/x86_64-apple-" + env["osxcross_sdk"] + "-"
|
||||
|
||||
ccache_path = os.environ.get("CCACHE")
|
||||
if ccache_path == None:
|
||||
|
||||
Reference in New Issue
Block a user