Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consider enabling -Z randomize-layout on nightly toolchain #51

Closed
dtolnay opened this issue Jan 12, 2023 · 2 comments · Fixed by #67
Closed

Consider enabling -Z randomize-layout on nightly toolchain #51

dtolnay opened this issue Jan 12, 2023 · 2 comments · Fixed by #67

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jan 12, 2023

rust-lang/rust#106764

@dtolnay
Copy link
Owner Author

dtolnay commented Feb 12, 2023

I think this will cause problems in some projects because RUSTFLAGS environment variable will override local .cargo/config and CARGO_TARGET_<target>_RUSTFLAGS.

@dtolnay
Copy link
Owner Author

dtolnay commented Feb 12, 2023

I guess there is sadly no way to do this. Maybe if Cargo or rustc adds a separate environment variable to control randomized layout specifically.

@dtolnay dtolnay closed this as completed Feb 12, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant