[PATCH] D60024: [cmake] Add function for building native tool

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 29 19:13:18 PDT 2019


smeenai created this revision.
smeenai added reviewers: beanz, compnerd, phosek.
Herald added subscribers: jdoerfert, mgorny.
Herald added a project: LLVM.

Instead of duplicating functionality for building native versions of
tblgen and llvm-config, add a function to set up a native tool build.
This will also be used for llvm-nm in a follow-up.

This should be NFC for tblgen. For the native llvm-config, it's a
behavior change in that we'll use llvm_ExternalProject_BuildCmd instead
of constructing the build command manually, always build in Release, and
reference the correct binary path for multi-config generators. I believe
all of these changes to be bug fixes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60024

Files:
  llvm/cmake/modules/CrossCompile.cmake
  llvm/cmake/modules/TableGen.cmake
  llvm/tools/llvm-config/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60024.192955.patch
Type: text/x-patch
Size: 5100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190330/a7b8d73d/attachment.bin>


More information about the llvm-commits mailing list