Fix -Zrandomize-layout setting in Windows jobs

This didn't take effect when run by the default pwsh shell.
This commit is contained in:
David Tolnay 2025-01-25 18:49:48 -08:00
parent 8ad3fc774a
commit 38a2228409
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -45,6 +45,7 @@ jobs:
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'
shell: bash
- name: Ignore Windows linker warning
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Alinker_messages >> $GITHUB_ENV
if: matrix.rust == 'nightly-x86_64-pc-windows-gnu'