[llvm-commits] [CMake] Restructure how Clang, Polly and other external tools get included.

Michael Spencer bigcheesegs at gmail.com
Wed Apr 25 14:14:20 PDT 2012


While making lld build under the tools directory I decided to refactor how this
works.

There is now a macro, add_llvm_external_tool, which takes the name of the
expected subdirectory. This sets up two CMake options.

  * LLVM_EXTERNAL_${NAME}_SOURCE_DIR
      This is the path to the source. It defaults to tools/${name}.
  * LLVM_EXTERNAL_${NAME}_BUILD
      Enable and disable building the tool as part of LLVM.

I chose LLVM_EXTERNAL_${NAME} as a prefix so they all show up together in the
GUI.

- Michael Spencer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-lld.patch
Type: application/octet-stream
Size: 3486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120425/342f4f84/attachment.obj>


More information about the llvm-commits mailing list