Attempt 2 to fix release (#12856)

This commit is contained in:
pakrym-oai
2026-02-25 19:12:19 -08:00
committed by GitHub
parent ea621ae152
commit b65205fb3d
2 changed files with 7 additions and 3 deletions

View File

@@ -88,8 +88,6 @@ jobs:
- name: Cargo build (Windows binaries)
shell: bash
env:
RUSTFLAGS: ${{ matrix.target == 'aarch64-pc-windows-msvc' && '-C link-arg=/Gy' || '' }}
run: |
cargo build --target ${{ matrix.target }} --release --timings ${{ matrix.build_args }}

View File

@@ -1,5 +1,11 @@
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "link-arg=/STACK:8388608"]
rustflags = [
"-C",
"link-arg=/STACK:8388608",
"-C",
"llvm-args=-function-sections",
]
[target.'cfg(all(windows, target_env = "gnu"))']
rustflags = ["-C", "link-arg=-Wl,--stack,8388608"]