Skip to content

Commit

Permalink
fix macOS 10.12 SDK uninstall
Browse files Browse the repository at this point in the history
fixes #43
  • Loading branch information
devernay committed Jan 17, 2018
1 parent 4a0aa58 commit 883095e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions XcodeLegacy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,9 @@ SPEC_EOF
if [ "$osx1011" = 1 ]; then
rm Xcode1011SDK.tar.gz 2>/dev/null
fi
if [ "$osx1012" = 1 ]; then
rm Xcode1012SDK.tar.gz 2>/dev/null
fi

;;

Expand Down Expand Up @@ -1187,6 +1190,10 @@ SPEC_EOF
i=10.11
[ -f "$SDKDIR/SDKs/MacOSX${i}.sdk/legacy" ] && rm -rf "$SDKDIR/SDKs/MacOSX${i}.sdk"
fi
if [ "$osx1012" = 1 ]; then
i=10.12
[ -f "$SDKDIR/SDKs/MacOSX${i}.sdk/legacy" ] && rm -rf "$SDKDIR/SDKs/MacOSX${i}.sdk"
fi

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

0 comments on commit 883095e

Please sign in to comment.