Skip to content

Commit

Permalink
Fix -Zrandomize-layout setting in Windows jobs
Browse files Browse the repository at this point in the history
This didn't take effect when run by the default pwsh shell.
  • Loading branch information
dtolnay committed Jan 26, 2025
1 parent c723113 commit eb057d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: startsWith(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'
Expand Down

0 comments on commit eb057d7

Please sign in to comment.