Skip to content

Commit 883095e

Browse files
authored
fix macOS 10.12 SDK uninstall
fixes #43
1 parent 4a0aa58 commit 883095e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

XcodeLegacy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,9 @@ SPEC_EOF
10831083
if [ "$osx1011" = 1 ]; then
10841084
rm Xcode1011SDK.tar.gz 2>/dev/null
10851085
fi
1086+
if [ "$osx1012" = 1 ]; then
1087+
rm Xcode1012SDK.tar.gz 2>/dev/null
1088+
fi
10861089

10871090
;;
10881091

@@ -1187,6 +1190,10 @@ SPEC_EOF
11871190
i=10.11
11881191
[ -f "$SDKDIR/SDKs/MacOSX${i}.sdk/legacy" ] && rm -rf "$SDKDIR/SDKs/MacOSX${i}.sdk"
11891192
fi
1193+
if [ "$osx1012" = 1 ]; then
1194+
i=10.12
1195+
[ -f "$SDKDIR/SDKs/MacOSX${i}.sdk/legacy" ] && rm -rf "$SDKDIR/SDKs/MacOSX${i}.sdk"
1196+
fi
11901197

11911198
if [ "$compilers" = 1 ]; then
11921199
if [ "$GCCINSTALLDIR/usr/bin/gcc" -ef "$GCCINSTALLDIR/usr/bin/clang" ]; then

0 commit comments

Comments
 (0)