Lines Matching +full:libc +full:- +full:build
4 up their own projects to use LLVM's libc, either as an overlay or as the only
5 libc in their projects. See the
6 [the usage mode document](https://libc.llvm.org/usage_modes.html) for more
7 information about the different modes in which one can build and use the libc.
12 build set up. To build an example, create a directory named `build` in the
17 mkdir build
18 cd build
21 Each example can be built to use the libc in either
22 [the overlay mode](https://libc.llvm.org/overlay_mode.html) or the
23 [full build mode](https://libc.llvm.org/fullbuild_mode.html). The CMake
24 configure step differs slightly depending on the mode you want to use the libc
27 Building against an overlay libc
28 --------------------------------
30 Before you can link an example against the overlay libc, you will have to
31 install it. See [the documentation of the overlay mode](https://libc.llvm.org/overlay_mode.html)
32 to learn how to install the libc's overlay static archive named `libllvmlibc.a`.
33 Once installed, to build an example against it, you have specify the directory
38 cmake ../ -G <GEN> \
39 -DLIBC_OVERLAY_ARCHIVE_DIR=<dir in which libc is installed>
42 Next, if `Ninja` is used for `<GEN>`, you can build the example as follows:
48 Building against a full libc
49 ----------------------------
51 Before you can link an example against the full libc, you will have to first
52 install it. See [the documentation of the full build mode](https://libc.llvm.org/fullbuild_mode.htm…
53 to learn how to install a full libc along with the other LLVM toolchain pieces
54 like `clang`, `lld` and `compiler-rt`. The CMake build for the examples will
56 (see decription of the `--sysroot` option
57 [here](https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html).) Once you
59 full libc as follows:
62 cmake ../ -G <GEN> -DLLVM_LIBC_FULL_BUILD=ON \
63 -DCMAKE_SYSROOT=<SYSROOT> \
64 -DCMAKE_C_COMPILER=<SYSROOT>/bin/clang \
65 -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
69 installing the full libc. The option
70 `-DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY` tells CMake to not attempt
72 libc does not yet have support for shared libraries and dynamic linking. After
73 the above `cmake` command, assuming `Ninja` was used for `<GEN>`, you can build