Update to 10.9 min deployment version, and try not explicitly setting the SDK

This commit is contained in:
Robin Dunn
2019-05-23 21:34:06 -07:00
parent efae7f448c
commit dcb06f6f18

View File

@@ -301,16 +301,16 @@ def main(wxDir, args):
# version present on the build machine.
# TODO: should there be a command line option to set the SDK?
if sys.platform.startswith("darwin"):
wxpy_configure_opts.append("--with-macosx-version-min=10.6")
for xcodePath in getXcodePaths():
sdks = [ xcodePath+"/SDKs/MacOSX10.{}.sdk".format(n)
for n in range(6, 15) ]
# use the lowest available sdk on the build machine
for sdk in sdks:
if os.path.exists(sdk):
wxpy_configure_opts.append(
"--with-macosx-sdk=%s" % sdk)
break
wxpy_configure_opts.append("--with-macosx-version-min=10.9")
# for xcodePath in getXcodePaths():
# sdks = [ xcodePath+"/SDKs/MacOSX10.{}.sdk".format(n)
# for n in range(9, 15) ]
# # use the lowest available sdk on the build machine
# for sdk in sdks:
# if os.path.exists(sdk):
# wxpy_configure_opts.append(
# "--with-macosx-sdk=%s" % sdk)
# break
if not options.mac_framework:
if installDir and not prefixDir: