Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add -Zmiri-env-set to set environment variables without modifying the host environment #3493

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

eduardosm
Copy link
Contributor

This option allows to pass environment variables to the interpreted program without needing to modify the host environment (which may have undesired effects in some cases).

@RalfJung
Copy link
Member

Doesn't rustc have some flag to sent env vars nowadays? Should we just reuse that instead of adding our own?

@eduardosm
Copy link
Contributor Author

I'm not aware of such flag

@RalfJung
Copy link
Member

rust-lang/compiler-team#653 was the decision to add it. Tracking issue is at rust-lang/rust#118372, so it seems to have been implemented.

@eduardosm
Copy link
Contributor Author

Do we want the same flag for compile-time env! and run-time std::env::var?

README.md Outdated Show resolved Hide resolved
@RalfJung
Copy link
Member

Do we want the same flag for compile-time env! and run-time std::env::var?

Fair, I guess it makes sense to treat them separately.

…he host environment

This option allows to pass environment variables to the interpreted program without needing to modify the host environment (which may have undesired effects in some cases).
README.md Outdated Show resolved Hide resolved
@oli-obk
Copy link
Contributor

oli-obk commented Apr 23, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Apr 23, 2024

📌 Commit 506ffc9 has been approved by oli-obk

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 23, 2024

⌛ Testing commit 506ffc9 with merge 98f3480...

@bors
Copy link
Contributor

bors commented Apr 23, 2024

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing 98f3480 to master...

@bors bors merged commit 98f3480 into rust-lang:master Apr 23, 2024
8 checks passed
@eduardosm eduardosm deleted the env-set branch April 23, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants