Lines Matching +full:test +full:- +full:cmake +full:- +full:minimum
19 test the LLVM tools and the Clang front end.
27 The last major part of LLVM, the execution Test Suite, does not run on Windows,
41 --------
47 --------
50 You will also need the `CMake <http://www.cmake.org/>`_ build system since it
51 generates the project files you will use to build with. CMake 2.8.12.2 is the
52 minimum required version for building with Visual Studio, though the latest
53 version of CMake is recommended.
74 1. ``cd <where-you-want-llvm-to-live>``
75 2. ``gunzip --stdout llvm-VERSION.tar.gz | tar -xvf -``
81 1. ``cd <where-you-want-llvm-to-live>``
82 2. ``svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm``
85 5. Use `CMake <http://www.cmake.org/>`_ to generate up-to-date project files:
87 * Once CMake is installed then the simplest way is to just start the
88 CMake GUI, select the directory where you have LLVM extracted to, and
96 * If CMake complains that it cannot find the compiler, make sure that
100 * See the :doc:`LLVM CMake guide <CMake>` for detailed information about
102 * CMake generates project files for all build types. To select a specific
109 file, just double-click on that to open Visual Studio.
119 ``CMAKE_INSTALL_PREFIX`` setting when you first configured CMake.
125 8. Test LLVM in Visual Studio:
128 ``LLVM_LIT_TOOLS_DIR`` on CMake for the path to GnuWin32.
129 * You can run LLVM tests by merely building the project "check". The test
132 9. Test LLVM on the command line:
137 .. code-block:: bat
139 …on ..\build\bin\llvm-lit --param build_config=Win32 --param build_mode=Debug --param llvm_site_con…
146 A specific test or test directory can be run with:
148 .. code-block:: bat
150 …uild\bin\llvm-lit --param build_config=Win32 --param build_mode=Debug --param llvm_site_config=../…
158 .. code-block:: c
168 .. code-block:: bat
170 C:\..> clang -c hello.c -emit-llvm -o hello.bc
180 .. code-block:: bat
182 C:\..> clang hello.c -o hello.exe
184 The ``-o hello.exe`` is required because clang currently outputs ``a.out``
185 when neither ``-o`` nor ``-c`` are given.
187 3. Run the program using the just-in-time compiler:
189 .. code-block:: bat
193 4. Use the ``llvm-dis`` utility to take a look at the LLVM assembly code:
195 .. code-block:: bat
197 C:\..> llvm-dis < hello.bc | more
201 .. code-block:: bat
203 C:\..> llc -filetype=obj hello.bc
207 .. code-block:: bat
209 C:\..> link hello.obj -defaultlib:libcmt
213 .. code-block:: bat