Merge pull request #67 from dtolnay/randomizelayout

Enable -Zrandomize-layout on nightly toolchain
This commit is contained in:
David Tolnay 2023-02-12 12:28:33 -08:00 committed by GitHub
commit 620177ca93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -106,5 +106,12 @@ runs:
fi
shell: bash
- run: |
: enable randomized type layout
if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: .*nightly'; then
echo RUSTFLAGS="-Zrandomize-layout ${RUSTFLAGS}" >> $GITHUB_ENV
fi
shell: bash
- run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose
shell: bash