Lines Matching +full:llvm +full:- +full:build

7 .. warning:: Modules are an experimental feature. It has additional build
16 * `Clang specific modules <https://clang.llvm.org/docs/Modules.html>`_
17 * `C++ modules <https://clang.llvm.org/docs/StandardCPlusPlusModules.html>`_
29 build and use the ``.pcm`` files. It is expected this will be done by build
30 systems in the future. To aid early adaptor and build system vendors libc++
35 on the availability of build systems with proper module support.
51 * ``LIBCXX_ENABLE_EXCEPTIONS`` [#note-no-windows]_
57 .. [#note-no-windows] This configuration will probably not work on Windows
58 due to hard-coded compilation flags.
63 * There is no official build system support, libc++ has experimental CMake support
69 * The path to the compiler may not be a symlink, ``clang-scan-deps`` does
74 hard to solve and there is a work-around by first including all headers
75 `bug report <https://github.com/llvm/llvm-project/issues/61465>`__.
92 `bug report <https://github.com/llvm/llvm-project/issues/62943>`__.
98 Users need to be able to build their own BMI files.
100 .. note:: The requirements for users to build their own BMI files will remain
102 Once libc++'s implementation is more mature we will reach out to build
104 the build system.
106 Currently there are two ways to build modules
108 * Use a local build of modules from the build directory. This requires
112 a recent build of CMake. The CMake changes will be part of CMake 3.30. This
115 Using the local build
118 .. code-block:: bash
120 $ git clone https://github.com/llvm/llvm-project.git
121 $ cd llvm-project
122 $ mkdir build
123 $ cmake -G Ninja -S runtimes -B build -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"
124 $ ninja -C build
126 The above ``build`` directory will be referred to as ``<build>`` in the
132 .. code-block:: cpp
142 .. code-block:: cmake
164 set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "2182bf5c-ef0d-489a-91da-49dbc3090d2a")
166 set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "aa1f7df0-828a-4fcd-9afc-2dc80491aca7")
201 .. code-block:: bash
203 $ mkdir build
204 $ cmake -G Ninja -S . -B build -DCMAKE_CXX_COMPILER=<path-to-compiler> -DLIBCXX_BUILD=<build>
205 $ ninja -C build
206 $ build/main
208 .. warning:: ``<path-to-compiler>`` should point point to the real binary and
215 ``-pthread`` in your project and not in the module will give
220 …_deps/std-build/CMakeFiles/std.dir/std.pcm cannot be loaded due to a configuration mismatch with t…
235 .. code-block:: cmake
237 # This requires a recent nightly build.
243 set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD "0e5b6991-d74f-4b3d-a41c-cf096e0b2508")
257 # https://gitlab.kitware.com/cmake/cmake/-/issues/25916
258 # https://gitlab.kitware.com/cmake/cmake/-/issues/25539
270 .. code-block:: bash
272 $ mkdir build
273 …$ cmake -G Ninja -S . -B build -DCMAKE_CXX_COMPILER=<path-to-compiler> -DCMAKE_CXX_FLAGS=-stdlib=l…
274 $ ninja -C build
275 $ build/main
277 .. warning:: ``<path-to-compiler>`` should point point to the real binary and
281 channel on `LLVM's Discord server <https://discord.gg/jzUbyP26tQ>`__.
283 If you think you've found a bug please it using the `LLVM bug tracker
284 <https://github.com/llvm/llvm-project/issues>`_. Please make sure the issue