Use rust-lld linker for windows to fix link.exe error
What changed, and why it matters
This commit changes the project's GitHub Actions build configuration for Windows only. It tells the Rust compiler to use an alternative linker (rust-lld) instead of the default Windows link.exe, because the Windows CI builds were failing to link. There is no change to application code, no user-facing behavior change, and no security relevance in the diff itself.
No security action needed. Treat as a normal CI maintenance change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adds a CI step in .github/workflows/build.yml that sets RUSTFLAGS=-C linker=rust-lld when the runner is windows-latest. This is a build-infrastructure workaround for a link.exe linker failure on Windows runners. It does not modify rust-lightning source code, cryptography, network protocol handling, memory safety, or any runtime behavior.
Changed components
.github/workflows/build.ymlInspect captured patch +4 / −0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f4ca7f4..d8cfe44 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -46,6 +46,10 @@ jobs:
- name: Install Rust ${{ matrix.toolchain }} toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
+ - name: Use rust-lld linker on Windows
+ if: matrix.platform == 'windows-latest'
+ shell: bash
+ run: echo "RUSTFLAGS=-C linker=rust-lld" >> "$GITHUB_ENV"
- name: Install no-std-check dependencies for ARM Embedded
if: "matrix.platform == 'self-hosted'"
run: |
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.