From bd1c5f2d43fc4a73df98c765652f559d6a0df0d7 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Thu, 2 Jul 2026 09:42:22 -0400 Subject: [PATCH] ci(windows-cuda): pass /bigobj to fix C1128 build failure stable-diffusion.cpp's Windows CUDA build fails with: fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj src/stable-diffusion.cpp combined with the CUDA backend's generated code exceeds MSVC's default COFF section limit per object file. The windows-latest-cmake job already works around the same class of issue with -DCMAKE_CXX_FLAGS='/bigobj'; apply the same flag to the CUDA build. --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c159f8a8a..e4fb3bcbe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -250,7 +250,8 @@ jobs: -DGGML_CUDA=ON ^ -DCMAKE_CUDA_ARCHITECTURES=%cmake_arch% ^ -DGGML_NATIVE=OFF ^ - -DSD_BUILD_SHARED_LIBS=ON + -DSD_BUILD_SHARED_LIBS=ON ^ + -DCMAKE_CXX_FLAGS=/bigobj cmake --build build --config Release - name: Get commit hash