devernay / xcodelegacy

Legacy components for XCode 4-12 (deprecated compilers and Mac OS X SDKs)
https://github.com/devernay/xcodelegacy
470 stars 63 forks source link

Fixes for uninstaller #31

Closed EricFromCanada closed 7 years ago

EricFromCanada commented 7 years ago

With these changes, all empty directories and orphaned symlinks originally installed with the -compilers option are removed on uninstall. This also preserves the LLVM-GCC files that shipped with Xcode 4, and removes the gcc -> clang symlink. I tested that /usr/bin, /Applications/Xcode.app/Contents/Developer/usr, and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr are restored to their original state when the uninstall is run on OS X 10.6 through 10.11 with the latest Xcode for each.

devernay commented 7 years ago

thanks!