github: use /arm64hazardfree for aarch64 windows builds

This commit is contained in:
pakrym-oai
2026-02-25 19:47:02 -08:00
parent 5ef84d6309
commit de08c70e87
2 changed files with 2 additions and 2 deletions

View File

@@ -374,7 +374,7 @@ jobs:
if: ${{ matrix.profile == 'release' && (matrix.target == 'x86_64-pc-windows-msvc' || matrix.target == 'aarch64-pc-windows-msvc') }}
shell: bash
env:
RUSTFLAGS: ${{ matrix.target == 'aarch64-pc-windows-msvc' && '-C link-arg=/Gy' || '' }}
RUSTFLAGS: ${{ matrix.target == 'aarch64-pc-windows-msvc' && '-C link-arg=/arm64hazardfree' || '' }}
run: |
cargo build --target ${{ matrix.target }} --release --timings --bin codex --bin codex-responses-api-proxy

View File

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