1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
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" />
13 <!--#include virtual="menu.html.incl"-->
17 <h1>Building and Installing Polly
</h1>
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
27 mkdir polly
&& cd polly
28 wget http://polly.llvm.org/polly.sh
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>
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
45 <h3 id=
"build">Build Polly
</h3>
48 mkdir llvm_build && cd llvm_build
49 cmake ../llvm_git && make
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>