Attempt 2 to fix release (#12856)
This commit is contained in:
parent
ea621ae152
commit
b65205fb3d
2 changed files with 7 additions and 3 deletions
2
.github/workflows/rust-release-windows.yml
vendored
2
.github/workflows/rust-release-windows.yml
vendored
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue