summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-03-10 20:48:02 +0000
committerChris Bieneman <beanz@apple.com>2015-03-10 20:48:02 +0000
commitda91ceb8606a38624773e5a629aa9d4124e6866f (patch)
tree58416f242680d9b67dab8c060518f8aada6e9240 /llvm/cmake/modules
parent4b7533a1ddc9a2ca6f2477b80cc5cff28ec8d229 (diff)
downloadbcm5719-llvm-da91ceb8606a38624773e5a629aa9d4124e6866f.tar.gz
bcm5719-llvm-da91ceb8606a38624773e5a629aa9d4124e6866f.zip
Add new LLVM_OPTIMIZED_TABLEGEN build setting which configures, builds and uses a release tablegen build when LLVM is configured with assertions enabled.
Summary: This change leverages the cross-compiling functionality in the build system to build a release tablegen executable for use during the build. Reviewers: resistor, rnk Reviewed By: rnk Subscribers: rnk, joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D7349 llvm-svn: 231842
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/TableGen.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index 67031a5d706..0a3e2b2e8c1 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -91,7 +91,7 @@ macro(add_tablegen target project)
# Effective tblgen executable to be used:
set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN} PARENT_SCOPE)
- if(CMAKE_CROSSCOMPILING)
+ if(LLVM_USE_HOST_TOOLS)
if( ${${project}_TABLEGEN} STREQUAL "${target}" )
set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/bin/${target}")
set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)
OpenPOWER on IntegriCloud