<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Updated in r264318.<div class=""><br class=""></div><div class="">I’ve got an item on my todo list to overhaul that page. Not sure if you (or anyone else on the list) has opinions here, but I’d really like the main CMake page to be the documentation targeted at new users of CMake and people new to building LLVM, and I’d like to splinter off into a series of more targeted “advanced” documentation pages for more specific things.</div><div class=""><br class=""></div><div class="">The fundamental idea being that each page would have a clear and narrow audience so that if you’re looking for specific types of information it is easy to find it without sifting or scrolling through lots of unrelated information.</div><div class=""><br class=""></div><div class="">Thoughts?</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 23, 2016, at 3:35 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com" class="">chisophugis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-size:12.8px" class="">Could you please update </span><a href="http://llvm.org/docs/CMake.html" target="_blank" style="font-size:12.8px" class="">http://llvm.org/docs/CMake.html</a><span style="font-size:12.8px" class="">? (docs/CMake.rst)</span><br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Mar 23, 2016 at 2:32 PM, Sean Silva <span dir="ltr" class=""><<a href="mailto:chisophugis@gmail.com" target="_blank" class="">chisophugis@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Could you please update <a href="http://llvm.org/docs/CMake.html" target="_blank" class="">http://llvm.org/docs/CMake.html</a>? (docs/CMake.rst)<span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">-- Sean Silva</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Mar 10, 2015 at 1:48 PM, Chris Bieneman <span dir="ltr" class=""><<a href="mailto:beanz@apple.com" target="_blank" class="">beanz@apple.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: cbieneman<br class="">
Date: Tue Mar 10 15:48:02 2015<br class="">
New Revision: 231842<br class="">
<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=231842&view=rev" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project?rev=231842&view=rev</a><br class="">
Log:<br class="">
Add new LLVM_OPTIMIZED_TABLEGEN build setting which configures, builds and uses a release tablegen build when LLVM is configured with assertions enabled.<br class="">
<br class="">
Summary: This change leverages the cross-compiling functionality in the build system to build a release tablegen executable for use during the build.<br class="">
<br class="">
Reviewers: resistor, rnk<br class="">
<br class="">
Reviewed By: rnk<br class="">
<br class="">
Subscribers: rnk, joker.eph, llvm-commits<br class="">
<br class="">
Differential Revision: <a href="http://reviews.llvm.org/D7349" rel="noreferrer" target="_blank" class="">http://reviews.llvm.org/D7349</a><br class="">
<br class="">
Modified:<br class="">
    llvm/trunk/CMakeLists.txt<br class="">
    llvm/trunk/cmake/modules/TableGen.cmake<br class="">
<br class="">
Modified: llvm/trunk/CMakeLists.txt<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=231842&r1=231841&r2=231842&view=diff" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=231842&r1=231841&r2=231842&view=diff</a><br class="">
==============================================================================<br class="">
--- llvm/trunk/CMakeLists.txt (original)<br class="">
+++ llvm/trunk/CMakeLists.txt Tue Mar 10 15:48:02 2015<br class="">
@@ -350,6 +350,11 @@ if(LLVM_DISABLE_LLVM_DYLIB_ATEXIT)<br class="">
   set(DISABLE_LLVM_DYLIB_ATEXIT 1)<br class="">
 endif()<br class="">
<br class="">
+option(LLVM_OPTIMIZED_TABLEGEN "Force TableGen to be built with optimization" OFF)<br class="">
+if(CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND LLVM_ENABLE_ASSERTIONS))<br class="">
+  set(LLVM_USE_HOST_TOOLS ON)<br class="">
+endif()<br class="">
+<br class="">
 # All options referred to from HandleLLVMOptions have to be specified<br class="">
 # BEFORE this include, otherwise options will not be correctly set on<br class="">
 # first cmake run<br class="">
@@ -536,9 +541,9 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)<br class="">
 include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})<br class="">
<br class="">
 # when crosscompiling import the executable targets from a file<br class="">
-if(CMAKE_CROSSCOMPILING)<br class="">
+if(LLVM_USE_HOST_TOOLS)<br class="">
   include(CrossCompile)<br class="">
-endif(CMAKE_CROSSCOMPILING)<br class="">
+endif(LLVM_USE_HOST_TOOLS)<br class="">
<br class="">
 if( ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD )<br class="">
   # On FreeBSD, /usr/local/* is not used by default. In order to build LLVM<br class="">
<br class="">
Modified: llvm/trunk/cmake/modules/TableGen.cmake<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=231842&r1=231841&r2=231842&view=diff" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=231842&r1=231841&r2=231842&view=diff</a><br class="">
==============================================================================<br class="">
--- llvm/trunk/cmake/modules/TableGen.cmake (original)<br class="">
+++ llvm/trunk/cmake/modules/TableGen.cmake Tue Mar 10 15:48:02 2015<br class="">
@@ -91,7 +91,7 @@ macro(add_tablegen target project)<br class="">
   # Effective tblgen executable to be used:<br class="">
   set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN} PARENT_SCOPE)<br class="">
<br class="">
-  if(CMAKE_CROSSCOMPILING)<br class="">
+  if(LLVM_USE_HOST_TOOLS)<br class="">
     if( ${${project}_TABLEGEN} STREQUAL "${target}" )<br class="">
       set(${project}_TABLEGEN_EXE "${LLVM_NATIVE_BUILD}/bin/${target}")<br class="">
       set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
llvm-commits mailing list<br class="">
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" class="">llvm-commits@cs.uiuc.edu</a><br class="">
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br class="">
</blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>