From 304859fc57dd0c2c047b6f330f970b02ac806a38 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Fri, 31 Oct 2025 18:00:57 +0100 Subject: [PATCH] T1 --- .github/workflows/rust-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 103e8cf6bd..a658f5ed49 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -168,6 +168,22 @@ jobs: restore-keys: | cargo-home-${{ matrix.runner }}-${{ matrix.target }}-${{ matrix.profile }}- + - name: Install LLVM (lld-link) + if: startsWith(matrix.runner, 'windows') + run: choco install -y llvm + + - name: Force lld-link via .cargo/config.toml + if: startsWith(matrix.runner, 'windows') + shell: bash + run: | + mkdir -p .cargo + cat > .cargo/config.toml <<'EOF' + [target.x86_64-pc-windows-msvc] + linker = "lld-link.exe" + [target.aarch64-pc-windows-msvc] + linker = "lld-link.exe" + EOF + # Install and restore sccache cache - name: Install sccache uses: taiki-e/install-action@0c5db7f7f897c03b771660e91d065338615679f4 # v2