Lines Matching +full:ninja +full:- +full:build
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
5 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
6 <title>Polly - Getting Started</title>
13 <!--#include virtual="menu.html.incl"-->
18 You can build Polly with <a href="https://cmake.org/">cmake</a> and your preferred generator (e.g. Ninja, make, Visual Studio, etc.).
23 git clone https://github.com/llvm/llvm-project.git
29 git clone --depth 1 https://github.com/llvm/llvm-project.git
32 <h3 id="build">Build Polly</h3>
35 mkdir build && cd build
36 cmake '-DLLVM_ENABLE_PROJECTS=clang;polly' ../llvm
37 cmake --build .
40 You can also pass arguments to cmake to specify a particular generator (e.g. <code>-G Ninja</code>) or the build type (<code>-DCMAKE_BUILD_TYPE=Release</code>).
42 If you just want to play around with Polly, it is recommended to do a Release+Assert build by passing
43 <code>-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON</code>.
49 <pre>cmake --build . --target check-polly</pre>
55 To compile it with Polly (in the build folder), you can run:
58 bin/clang -O3 -mllvm -polly hello.c
64 If you run out of memory when building with Ninja, try lowering the concurrency of Ninja (e.g. <code> ninja -j 2 </code>).
65 More tips and tricks to building and using LLVM can be found <a href="https://llvm.org/docs/GettingStarted.html#common-problems">here</a>.