3030 # cpp_compiler: g++
3131 steps :
3232 - uses : actions/checkout@v4
33-
33+
3434 # Libc's build is relatively small comparing with other components of LLVM.
3535 # A fresh fullbuild takes about 190MiB of uncompressed disk space, which can
3636 # be compressed into ~40MiB. Limiting the cache size to 1G should be enough.
4343 max-size : 1G
4444 key : libc_fullbuild_${{ matrix.c_compiler }}
4545 variant : ${{ matrix.ccache-variant }}
46-
46+
4747 # Notice:
4848 # - MPFR is required by some of the mathlib tests.
4949 # - Debian has a multilib setup, so we need to symlink the asm directory.
6060 run : |
6161 echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
6262 echo "build-install-dir=${{ github.workspace }}/install" >> "$GITHUB_OUTPUT"
63-
63+
6464 # Configure libc fullbuild with scudo.
6565 # Use MinSizeRel to reduce the size of the build.
6666 - name : Configure CMake
7474 -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }}
7575 -DLLVM_ENABLE_RUNTIMES="libc;compiler-rt"
7676 -DLLVM_LIBC_FULL_BUILD=ON
77+ -DLLVM_LIBC_USE_HOST_KERNEL_HEADERS=ON
7778 -DLLVM_LIBC_INCLUDE_SCUDO=ON
7879 -DCOMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=ON
7980 -DCOMPILER_RT_BUILD_GWP_ASAN=OFF
@@ -83,14 +84,14 @@ jobs:
8384
8485 - name : Build
8586 run : >
86- cmake
87- --build ${{ steps.strings.outputs.build-output-dir }}
87+ cmake
88+ --build ${{ steps.strings.outputs.build-output-dir }}
8889 --parallel
8990 --target install
9091
9192 - name : Test
9293 run : >
93- cmake
94- --build ${{ steps.strings.outputs.build-output-dir }}
94+ cmake
95+ --build ${{ steps.strings.outputs.build-output-dir }}
9596 --parallel
9697 --target check-libc
0 commit comments