%general-entities; ]> LLVM &llvm-version;
&llvm-url;
LLVM-&llvm-version; - Pass 1 LLVM tools, pass 1 <para>The LLVM package contains a collection of modular and reusable compiler and toolchain technologies.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&llvm-tmpp1-sbu;</seg> <seg>&llvm-tmpp1-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of LLVM Prepare some CMake modules needed by LLVM building system: tar -xf ../llvm-cmake-&llvm-version;.src.tar.xz mv cmake-&llvm-version;.src ../cmake The LLVM documentation recommends building LLVM in a dedicated build directory: mkdir -v build cd build Prepare LLVM for compilation: CC=gcc CXX=g++ cmake \ -DCMAKE_INSTALL_PREFIX=$LFS/tools \ -DLLVM_ENABLE_FFI=OFF \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_BUILD_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_TARGETS_TO_BUILD=host \ -DLLVM_INCLUDE_BENCHMARKS=OFF \ -Wno-dev .. The meaning of the configure options: -DLLVM_ENABLE_FFI=OFF Allow building LLVM without libffi installed on the host distro. For the meaning of other CMake options, see TODO. Compile LLVM by running: make Install the package: make install Clean up the source directory: rm -rf ../../cmake <para>Details on this package are located in <xref linkend="contents-llvm" role="."/></para> </sect2> </sect1>