Skip to content

Commit 09c066e

Browse files
committed
Set min OSX version build option to 10.6
1 parent e141c95 commit 09c066e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

buildtools/build_wxwidgets.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -298,16 +298,14 @@ def main(wxDir, args):
298298
else:
299299
wxpy_configure_opts.append("--with-sdl")
300300

301-
# Try to use use lowest available SDK back to 10.5. Both Carbon and
302-
# Cocoa builds require at least the 10.5 SDK now. We only add it to
303-
# the wxpy options because this is a hard-requirement for wxPython,
304-
# but other cases it is optional and is left up to the developer.
305-
# TODO: there should be a command line option to set the SDK...
301+
# Set the minimum supported OSX version, and find the oldest SDK
302+
# version present on the build machine.
303+
# TODO: should there be a command line option to set the SDK?
306304
if sys.platform.startswith("darwin"):
305+
wxpy_configure_opts.append("--with-macosx-version-min=10.6")
307306
for xcodePath in getXcodePaths():
308307
sdks = [ xcodePath+"/SDKs/MacOSX10.{}.sdk".format(n)
309-
for n in range(5, 15) ]
310-
308+
for n in range(6, 15) ]
311309
# use the lowest available sdk on the build machine
312310
for sdk in sdks:
313311
if os.path.exists(sdk):

0 commit comments

Comments
 (0)