Skip to content

Commit 33e4078

Browse files
committed
fix windows
1 parent 6b5f0bf commit 33e4078

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.cargo/config.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
[alias]
22
generate-test-db = "run --manifest-path ./xtask/generate-test-db/Cargo.toml --"
3-
4-
# https://github.com/rust-lang/rust/issues/141626 (can be removed once link.exe is fixed)
5-
[target.x86_64-pc-windows-msvc]
6-
linker = "rust-lld"

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ jobs:
9595
# See: https://github.com/jemalloc/jemalloc/issues/467
9696
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV
9797
98+
# Workaround for https://github.com/actions/runner-images/issues/12432
99+
# from https://github.com/rust-lang/rust/issues/141626#issuecomment-2919419236
100+
# Visual Studio bug tracker https://developercommunity.visualstudio.com/t/Regression-from-1943:-linkexe-crashes/10912960
101+
- name: Setup RUSTFLAGS (Windows)
102+
if: ${{ matrix.job.target == 'x86_64-pc-windows-msvc' }}
103+
uses: actions/github-script@v7
104+
with:
105+
script: |
106+
core.exportVariable('RUSTFLAGS', '-Csymbol-mangling-version=v0');
107+
98108
- name: Build binary
99109
run: |
100110
cargo --version

0 commit comments

Comments
 (0)