[polly] r307704 - [WWW] Add a section to Getting Started about building out-of-tree

Philip Pfaffe via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 13:37:28 PDT 2017


Author: pfaffe
Date: Tue Jul 11 13:37:28 2017
New Revision: 307704

URL: http://llvm.org/viewvc/llvm-project?rev=307704&view=rev
Log:
[WWW] Add a section to Getting Started about building out-of-tree

Modified:
    polly/trunk/www/get_started.html

Modified: polly/trunk/www/get_started.html
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/get_started.html?rev=307704&r1=307703&r2=307704&view=diff
==============================================================================
--- polly/trunk/www/get_started.html (original)
+++ polly/trunk/www/get_started.html Tue Jul 11 13:37:28 2017
@@ -53,6 +53,18 @@ cmake ../llvm_git && make
 
 <pre>make check-polly</pre>
 
+<h3>Building Polly Without LLVM</h3>
+It is also possible to build Polly without
+also building LLVM. All you need is an installed version of LLVM or a previous
+build. To configure Polly to use a pre-built LLVM, set the
+<code>-DCMAKE_PREFIX_PATH</code> option:
+
+<pre>cmake -DCMAKE_PREFIX_PATH=${LLVM_PREFIX}/lib/cmake/llvm</pre>
+
+To run unittests, however, you need to have the LLVM source directory around.
+Polly will use the <code>llvm-config</code> of the LLVM you're building against
+to guess the location of the source directory. You may override autodetected
+location by setting the <code>-DLLVM_SOURCE_ROOT</code> option.
 
 <h3> Troubleshooting</h3>
 




More information about the llvm-commits mailing list