Skip to content

Commit f4baa51

Browse files
committed
Enable -Zrandomize-layout on nightly toolchain
1 parent 785525d commit f4baa51

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,12 @@ runs:
106106
fi
107107
shell: bash
108108
109+
- run: |
110+
: enable randomized type layout
111+
if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | grep -q '^release: .*nightly'; then
112+
echo RUSTFLAGS="-Zrandomize-layout ${RUSTFLAGS}" >> $GITHUB_ENV
113+
fi
114+
shell: bash
115+
109116
- run: rustc +${{steps.parse.outputs.toolchain}} --version --verbose
110117
shell: bash

0 commit comments

Comments
 (0)