Lines Matching +full:- +full:dllvm_enable_projects
26 * **Standalone cross build** - Using this recipe one can build the libc using a
29 * **Bootstrap cross build** - In this recipe, one will build the ``clang``
51 --------------------
55 .. code-block:: sh
57 $> cd llvm-project # The llvm-project checkout
63 -G Ninja \
64 -DLLVM_ENABLE_RUNTIMES=libc \
65 -DCMAKE_C_COMPILER=$C_COMPILER \
66 -DCMAKE_CXX_COMPILER=$CXX_COMPILER \
67 -DLLVM_LIBC_FULL_BUILD=ON \
68 -DLIBC_TARGET_TRIPLE=<Your target triple> \
69 -DCMAKE_BUILD_TYPE=<Release|Debug>
73 * **Enabled Runtimes** - Since we want to build LLVM-libc, we list
75 * **The full build option** - Since we want to build the full libc, we pass
76 ``-DLLVM_LIBC_FULL_BUILD=ON``.
77 * **The target triple** - This is the target triple of the target for which
78 we are building the libc. For example, for a Linux 32-bit Arm target,
79 one can specify it as ``arm-linux-eabi``.
82 ----------
87 .. code-block:: sh
92 ``libm.a`` for the target specified with ``-DLIBC_TARGET_TRIPLE`` in the CMake
102 --------------------
104 .. code-block:: sh
106 $> cd llvm-project # The llvm-project checkout
113 -G Ninja \
114 -DCMAKE_C_COMPILER=$C_COMPILER \
115 -DCMAKE_CXX_COMPILER=$CXX_COMPILER \
116 -DLLVM_ENABLE_PROJECTS=clang \
117 -DLLVM_ENABLE_RUNTIMES=libc \
118 -DLLVM_LIBC_FULL_BUILD=ON \
119 -DLLVM_RUNTIME_TARGETS=$TARGET_TRIPLE \
120 -DCMAKE_BUILD_TYPE=Debug
124 * ``clang`` is listed in ``-DLLVM_ENABLE_PROJECTS`` and ``libc`` is
125 listed in ``-DLLVM_ENABLE_RUNTIMES``.
126 * The CMake root source directory is ``llvm-project/llvm``.
127 * The target triple is specified with ``-DLLVM_RUNTIME_TARGETS``.
130 ----------
134 .. code-block:: sh
139 specified with ``-DLLVM_RUNTIME_TARGETS``.
145 `system <https://clang.llvm.org/docs/CrossCompilation.html#target-triple>`_
147 32-bit arm target on bare metal, one can use a target triple like
148 ``arm-none-eabi``. Other than that, the libc for a bare metal target can be
156 ``nvptx64-nvidia-cuda`` for NVIDIA GPUs or ``amdgcn-amd-amdhsa`` for AMD GPUs.