mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-14 05:26:34 +02:00
Merge pull request #67 from dtolnay/randomizelayout
Enable -Zrandomize-layout on nightly toolchain
This commit is contained in:
commit
620177ca93
1 changed files with 7 additions and 0 deletions
|
@ -106,5 +106,12 @@ runs:
|
||||||
fi
|
fi
|
||||||
shell: bash
|
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
|
- run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue