This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Minor cleanup to Xcode toolchain generation
Needs ReviewPublic

Authored by grp on Nov 14 2016, 3:33 AM.

Details

Reviewers
beanz
Summary
  • Remove unused tool path check.
  • Avoid PlistBuddy to avoid requiring macOS.

Diff Detail

Repository
rL LLVM

Event Timeline

grp updated this revision to Diff 77786.Nov 14 2016, 3:33 AM
grp retitled this revision from to [CMake] Minor cleanup to Xcode toolchain generation.
grp updated this object.
grp added a reviewer: beanz.
grp set the repository for this revision to rL LLVM.
beanz edited edge metadata.Nov 14 2016, 2:38 PM

Removing the dead code is fine. Really not a fan of removing PlistBuddy.

Generally I'm not sure supporting building OS X binaries on non-Apple systems is a good idea, and using echo like this is less maintainable than using a tool that actually understands plists.

If you're cross building your Darwin compiler (and I *really* don't want to know if you are or how you're doing it... because lawyers). It seems to me that constructing the toolchain plist is something you might want to handle outside the LLVM build system.

grp added a comment.Nov 14 2016, 2:39 PM

Makes sense. I'll cut it down to just the dead code.