[isl++] add isl_constraint to C++ bindings [NFC]
[polly-mirror.git] / www / get_started.html
blob2dac41cdc93ceea1a7befb2c5f9c6f41af72b1ea
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
6 <title>Polly - Getting Started</title>
7 <link type="text/css" rel="stylesheet" href="menu.css" />
8 <link type="text/css" rel="stylesheet" href="content.css" />
9 </head>
10 <body>
12 <div id="box">
13 <!--#include virtual="menu.html.incl"-->
15 <div id="content">
17 <h1>Building and Installing Polly</h1>
19 <h2> Automatic </h2>
21 There is a <a href="polly.sh">script</a> available to automatically checkout,
22 update, build, and test Polly. This script contains all the commands that are
23 subsequently described on this webpage. The automatic installation consists
24 of four simple steps:
26 <pre>
27 mkdir polly &amp;&amp; cd polly
28 wget http://polly.llvm.org/polly.sh
29 chmod +x polly.sh
30 ./polly.sh
31 </pre>
33 <h2> Manual </h2>
34 <h3 id="source"> Get the code </h3>
36 <p><b>Warning:</b> Polly/LLVM/clang need to be checked out at the same time.</p>
38 <pre>
39 git clone http://llvm.org/git/llvm.git llvm_git
40 git clone http://llvm.org/git/polly.git llvm_git/tools/polly
42 # Also build the matching clang-version (optional)
43 git clone http://llvm.org/git/clang.git llvm_git/tools/clang
44 </pre>
45 <h3 id="build">Build Polly</h3>
47 <pre>
48 mkdir llvm_build && cd llvm_build
49 cmake ../llvm_git && make
50 </pre>
52 <h3> Test Polly</h3>
54 <pre>make check-polly</pre>
57 <h3> Troubleshooting</h3>
59 <p>If you get an error in one of the python files, your system probably uses python3
60 as default python interpreter. This is the case, for instance, under Arch Linux.
61 To solve this issue, run <code>cmake</code> again, but with the added argument:
62 <code>-DPYTHON_EXECUTABLE=/usr/bin/python2</code> (replace <code>/usr/bin/python2</code>
63 with the location of the python2 interpreter under your system).
65 <pre>cmake -DCMAKE_PREFIX_PATH=${ISL_INSTALL} -DPYTHON_EXECUTABLE=/usr/bin/python2 ${LLVM_SRC}</pre>
67 </div>
68 </div>
70 </body>
71 </html>