Force lldb plugin/SOS to build with macOS 10.12 SDK
authorMike McLaughlin <mikem@microsoft.com>
Thu, 7 Mar 2019 19:07:22 +0000 (11:07 -0800)
committerMike McLaughlin <mikem@microsoft.com>
Thu, 7 Mar 2019 20:38:27 +0000 (12:38 -0800)
So they work on the supported versions of macOS.

eng/build-native.sh

index cd25544e7b3727ea41b9bebd3d93e4d9fafd06f4..0ece72f29d18d685e29879e6c4dccea3d7f5bdd0 100755 (executable)
@@ -420,6 +420,8 @@ if [ "$__HostOS" == "OSX" ]; then
     export LLDB_LIB=/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/LLDB
     export LLDB_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/lldb
 
+    export MACOSX_DEPLOYMENT_TARGET=10.12
+
     # If Xcode 9.2 exists (like on the CI/build machines), use that. Xcode 9.3 or 
     # greater (swift 4.1 lldb) doesn't work that well (seg faults on exit).
     if [ -f "/Applications/Xcode_9.2.app/Contents/Developer/usr/bin/lldb" ]; then