Set Mac OS X deployment target to 10.9
authorKyle Fleming <garthex@gmail.com>
Sun, 16 Apr 2017 21:39:26 +0000 (14:39 -0700)
committerKyle Fleming <garthex@gmail.com>
Sun, 16 Apr 2017 21:39:26 +0000 (14:39 -0700)
Without it set, the build will choose the current OS version as the deployment target. 10.9 is the earliest usable, since that is when OS X introduced libc++.

platforms/osx/build_framework.py

index 64e73c5..6e23931 100644 (file)
@@ -18,6 +18,7 @@ class OSXBuilder(Builder):
     def getBuildCommand(self, archs, target):
         buildcmd = [
             "xcodebuild",
+            "MACOSX_DEPLOYMENT_TARGET=10.9",
             "ARCHS=%s" % archs[0],
             "-sdk", target.lower(),
             "-configuration", "Release",