This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Add cache scripts for Apple-style clang builds.
ClosedPublic

Authored by beanz on Sep 11 2015, 1:51 PM.

Details

Summary

These CMake cache scripts are my first pass at replicating Apple's packaging logic from autoconf. They can be used on any Darwin machine to approximate an Apple Clang build.

The included README file includes documentation and a sample CMake invocation.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 34586.Sep 11 2015, 1:51 PM
beanz retitled this revision from to [CMake] Add cache scripts for Apple-style clang builds..
beanz updated this object.
beanz added reviewers: chandlerc, echristo.
beanz added a subscriber: cfe-commits.
echristo accepted this revision.Sep 15 2015, 11:25 AM
echristo edited edge metadata.

Interesting. I'm down with putting this in - would it make more sense to put this alongside the buildit bits in the llvm/utils repo?

-eric

This revision is now accepted and ready to land.Sep 15 2015, 11:25 AM

I had considered putting it in the LLVM repo, but this stuff actually works on standalone clang builds too, so I felt it might be better here.

-Chris

Standalone as "clang that only sorta depends on llvm"?

beanz added a comment.Sep 15 2015, 1:04 PM

Standalone as in using the base system's LLVM installation. So you don't actually have to have an llvm checkout.

There's goop in the root clang CMakeLists file to support building clang as the top-level CMake tool, and all this stuff should work in that context as well.

-Chris

Ah sure. Make it so then.

This revision was automatically updated to reflect the committed changes.