makepanda: Don't set macOS deployment target to 10.13 except when linking with Python
This prevents building for multiple Python versions in the same build [skip ci]
This commit is contained in:
parent
cfe3726aeb
commit
5b6318e77f
|
|
@ -357,8 +357,6 @@ os.environ["MAKEPANDA"] = os.path.abspath(sys.argv[0])
|
|||
if GetHost() == "darwin":
|
||||
if tuple(OSX_ARCHS) == ('arm64',):
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "11.0"
|
||||
elif sys.version_info >= (3, 13):
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.13"
|
||||
else:
|
||||
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
|
||||
|
||||
|
|
@ -1337,8 +1335,6 @@ def CompileCxx(obj,src,opts):
|
|||
|
||||
if tuple(OSX_ARCHS) == ('arm64',):
|
||||
cmd += " -mmacosx-version-min=11.0"
|
||||
elif sys.version_info >= (3, 13):
|
||||
cmd += " -mmacosx-version-min=10.13"
|
||||
else:
|
||||
cmd += " -mmacosx-version-min=10.9"
|
||||
|
||||
|
|
@ -1876,7 +1872,7 @@ def CompileLink(dll, obj, opts):
|
|||
|
||||
if tuple(OSX_ARCHS) == ('arm64',):
|
||||
cmd += " -mmacosx-version-min=11.0"
|
||||
elif sys.version_info >= (3, 13):
|
||||
elif sys.version_info >= (3, 13) and 'PYTHON' in opts:
|
||||
cmd += " -mmacosx-version-min=10.13"
|
||||
else:
|
||||
cmd += " -mmacosx-version-min=10.9"
|
||||
|
|
|
|||
Loading…
Reference in New Issue