[llvm-branch-commits] [llvm] [libc] Build fuzzing tests in pre-merge CI tests (PR #185018)

Victor Campos via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 6 07:22:01 PST 2026


https://github.com/vhscampos updated https://github.com/llvm/llvm-project/pull/185018

>From f85ff8b38b8854ae76876fe9cd244187c7d56258 Mon Sep 17 00:00:00 2001
From: Victor Campos <victor.campos at arm.com>
Date: Fri, 6 Mar 2026 14:46:26 +0000
Subject: [PATCH 1/2] [libc] Build fuzzing tests in pre-merge CI tests

At the moment, no CI job tests whether the fuzzing tests build
correctly.

This patch adds the build of fuzzing tests to the pre-merge CI job.
---
 .github/workflows/libc-fullbuild-tests.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index c796196b2180f..109ae93a917eb 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -121,7 +121,7 @@ jobs:
     # Use MinSizeRel to reduce the size of the build.
     - name: Configure CMake
       run: |
-        export RUNTIMES="libc"
+        export RUNTIMES="compiler-rt;libc"
 
         export CMAKE_FLAGS="
           -G Ninja
@@ -136,7 +136,6 @@ jobs:
           -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.build-install-dir }}"
 
         if [[ ${{ matrix.include_scudo}} == "ON" ]]; then
-          export RUNTIMES="$RUNTIMES;compiler-rt"
           export CMAKE_FLAGS="$CMAKE_FLAGS
             -DLLVM_LIBC_INCLUDE_SCUDO=ON
             -DCOMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC=ON
@@ -162,7 +161,7 @@ jobs:
         cmake 
         --build ${{ steps.strings.outputs.build-output-dir }} 
         --parallel
-        --target install
+        --target install libc-fuzzer
 
     - name: Test
       # Skip UEFI and baremetal tests until we have testing set up.

>From 6297c2484d8de4171c08a54ea794c0ff1a306877 Mon Sep 17 00:00:00 2001
From: Victor Campos <victor.campos at arm.com>
Date: Fri, 6 Mar 2026 15:19:32 +0000
Subject: [PATCH 2/2] 1. Run this job in all branches. 2. Remove outdated
 comment about build type

---
 .github/workflows/libc-fullbuild-tests.yml | 2 --
 1 file changed, 2 deletions(-)

diff --git a/.github/workflows/libc-fullbuild-tests.yml b/.github/workflows/libc-fullbuild-tests.yml
index 109ae93a917eb..8ff5359076f96 100644
--- a/.github/workflows/libc-fullbuild-tests.yml
+++ b/.github/workflows/libc-fullbuild-tests.yml
@@ -4,7 +4,6 @@ permissions:
   contents: read
 on:
   pull_request:
-    branches: [ "main" ]
     paths:
       - 'libc/**'
       - '.github/workflows/libc-fullbuild-tests.yml'
@@ -118,7 +117,6 @@ jobs:
         echo "build-install-dir=/__w/llvm-project/llvm-project/install" >> "$GITHUB_OUTPUT"
     
     # Configure libc fullbuild with scudo.
-    # Use MinSizeRel to reduce the size of the build.
     - name: Configure CMake
       run: |
         export RUNTIMES="compiler-rt;libc"



More information about the llvm-branch-commits mailing list