Skip to content

Commit e1edbde

Browse files
Use rust-lld linker for windows to fix link.exe error
1 parent de2005a commit e1edbde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
- name: Install Rust ${{ matrix.toolchain }} toolchain
4747
run: |
4848
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
49+
- name: Use rust-lld linker on Windows
50+
if: matrix.platform == 'windows-latest'
51+
shell: bash
52+
run: echo "RUSTFLAGS=-C linker=rust-lld" >> "$GITHUB_ENV"
4953
- name: Install no-std-check dependencies for ARM Embedded
5054
if: "matrix.platform == 'self-hosted'"
5155
run: |

0 commit comments

Comments
 (0)