Skip to content

Commit

Permalink
Merge pull request #67 from dtolnay/randomizelayout
Browse files Browse the repository at this point in the history
Enable -Zrandomize-layout on nightly toolchain
  • Loading branch information
dtolnay committed Feb 12, 2023
2 parents 785525d + f4baa51 commit 620177c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 620177c

Please sign in to comment.