Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/compute_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
DEPENDENT_RUNTIMES_TO_TEST = {
"clang": {"compiler-rt"},
"clang-tools-extra": {"libc"},
"libc": {"libc"},
"libc": {"libc", "compiler-rt"},
".ci": {"compiler-rt", "libc"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
Expand Down
8 changes: 7 additions & 1 deletion .ci/monolithic-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
-D LLDB_ENABLE_PYTHON=ON \
-D LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON \
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}"
-D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
-D LLVM_LIBC_FULL_BUILD=ON \
-D LLVM_LIBC_INCLUDE_SCUDO=ON \
-D COMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=ON \
-D COMPILER_RT_BUILD_GWP_ASAN=OFF \
-D COMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED=OFF


echo "--- ninja"
# Targets are not escaped as they are passed as separate arguments.
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/libc-fullbuild-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,31 @@ jobs:
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release, MinSizeRel]
include:
- os: ubuntu-24.04
build_type: Debug
ccache-variant: sccache
c_compiler: clang-21
cpp_compiler: clang++-21
target: x86_64-unknown-linux-llvm
include_scudo: ON
- os: ubuntu-24.04
build_type: MinSizeRel
ccache-variant: sccache
c_compiler: clang-21
cpp_compiler: clang++-21
target: x86_64-unknown-linux-gnu
include_scudo: ON
# TODO: remove ccache logic when https://github.com/hendrikmuhs/ccache-action/issues/279 is resolved.
- os: ubuntu-24.04-arm
build_type: Debug
ccache-variant: ccache
c_compiler: clang-21
cpp_compiler: clang++-21
target: aarch64-unknown-linux-llvm
target: aarch64-unknown-linux-gnu
include_scudo: ON
- os: ubuntu-24.04
build_type: Debug
ccache-variant: ccache
c_compiler: clang-21
cpp_compiler: clang++-21
Expand Down Expand Up @@ -77,6 +86,7 @@ jobs:

# Configure libc fullbuild with scudo.
# Use MinSizeRel to reduce the size of the build.

- name: Configure CMake
run: |
export RUNTIMES="libc"
Expand All @@ -93,12 +103,12 @@ jobs:
cmake -B ${{ steps.strings.outputs.build-output-dir }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_C_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ matrix.ccache-variant }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }} \
-DLLVM_RUNTIMES_TARGET=${{ matrix.target }} \
-DLLVM_ENABLE_RUNTIMES="$RUNTIMES" \
-DLLVM_RUNTIMES_TARGET=${{ matrix.target }} \
-DLLVM_LIBC_FULL_BUILD=ON \
-G Ninja \
-S ${{ github.workspace }}/runtimes \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/libc-overlay-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations.
fail-fast: false
matrix:
build_type: [Debug, Release, MinSizeRel]
build_type: [Debug]
os: [ubuntu-24.04,ubuntu-24.04-arm, windows-2022, windows-2025, macos-14]
include:
# TODO: add linux gcc when it is fixed
- os: ubuntu-24.04
Expand Down Expand Up @@ -88,6 +89,10 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"

- name: Check clang version
run: >
clang++ --version

# Use MinSizeRel to reduce the size of the build.
# Notice that CMP0141=NEW and MSVC_DEBUG_INFORMATION_FORMAT=Embedded are required
# by the sccache tool.
Expand All @@ -110,7 +115,6 @@ jobs:
cmake
--build ${{ steps.strings.outputs.build-output-dir }}
--parallel
--config MinSizeRel
--target libc

- name: Test
Expand All @@ -119,3 +123,4 @@ jobs:
--build ${{ steps.strings.outputs.build-output-dir }}
--parallel
--target check-libc
-- -v
Loading