Skip to content

Commit

Permalink
Enable -Zrandomize-layout on nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 12, 2023
1 parent 785525d commit f4baa51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
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 f4baa51

Please sign in to comment.