diff options
author | Ryan Gardner <ryan.gardner@coxautoinc.com> | 2021-05-17 19:43:51 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-05-20 15:10:52 -0700 |
commit | effd0dbae8bd7b21d386cb68653e80a87e82e6bf (patch) | |
tree | 3dd8b5196ba6962bb6d9071ea0dfe962f2aa2419 /scripts/ios | |
parent | 2d734c529b5eb389ca9526575c9520b444d21a30 (diff) | |
download | subsurface-effd0dbae8bd7b21d386cb68653e80a87e82e6bf.tar.gz |
Make the Mac SDK detection in build.sh more robust
When trying to build on Big Sur, the xcode command-line tools
install are installed in /Library/Developer/CommandLineTools/SDKs,
and as of Xcode 12.5, it does not include a 10.x version
of SDK.
This changes it to search in the location of the command-line tools SDK
for a 10.x version, and if it can't find a 10.x version it will
find an explicit 11.x version of the SDK to use because it is
conceivable that in the near future Apple will stop installing any
10.x SDK's as part of the command-line tool installer.
If the SDK can't be found, the build script will exit now instead
of continuing with an unset BASESDK version that causes a later failure.
Signed-off-by: Ryan Gardner <ryan.gardner@coxautoinc.com>
Diffstat (limited to 'scripts/ios')
0 files changed, 0 insertions, 0 deletions